import java.util.Scanner; public class other { public static void main(String[] args) {
Scanner s1 = new Scanner(System.in); Scanner s2 = new Scanner(System.in);
long a = s1.nextInt();
long n = s2.nextInt();
long sum = 0; long temp = 0;
for (int i = 1; i <=n; i++) {//加的数
temp = temp*10+a;
sum +=temp;
System.out.println(temp);
}
System.out.println(sum);
System.out.println(temp);
} }