public class Main { public static int[] num = new int[10];
public static void main(String[] args) { Scanner cin = new Scanner(System.in); int n = 0; n = cin.nextInt(); Count(n); num[0] -= del_zero(get_length(n)); for (int i = 0; i < 10; i++) System.out.println(num[i]); }
public static int get_length(int num) { return (int) Math.log10(num) + 1; }
public static int get_head(int num) { return num / (int) Math.pow(10, get_length(num) - 1); }
public static int get_remainder(int num) { return num % (int) Math.pow(10, get_length(num) - 1); }
public static int del_zero(int length) { if (length == 1) return 1; return del_zero(length - 1) + (int) Math.pow(10, length - 1); }
public static void Count(int n) {
for (int i = 0; i < 10; i++) { num[i] = num[i] + get_head(n) * (get_length(n) - 1) * (int) Math.pow(10, (get_length(n) - 2)); }
for (int i = 0; i < get_head(n); i++) { num[i] = num[i] + (int) Math.pow(10, get_length(n) - 1); }