#include <bits/stdc++.h>
int main(void) {
  int k, i, b;
  scanf("%d", &k);
  int a[] = {1,  2,  3,  4,  5,  6,  7,  8,  9,  19, 28, 29, 37, 38,
             39, 49, 57, 58, 59, 68, 69, 79, 87, 88, 89, 97, 98, 99};
  for (i = 0; i < 28; i++) {
    printf("%d\n", a[i]);
    k--;
    if (k == 0) goto a;
  }
  b = a[i - 1];
  while (k != 0) {
    b += 10;
    printf("%d\n", b);
    k--;
  }
a:;
  return 0;
}
