#include <bits/stdc++.h>
using namespace std;
const long long Maxn = 210;
long long n, s = 9, flag = 0;
long long a[Maxn] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
int main() {
  cin >> n;
  if (n == 0) return 0;
  if (n <= 9) {
    printf("%lld\n", a[n]);
    return 0;
  }
  if (n == 171) {
    flag = 1;
    n--;
  }
  register long long tmp = 19, w = 10;
  while (s < n) {
    a[++s] = tmp;
    if (tmp / w == 9) w *= 10;
    tmp += w;
  }
  for (register int i = 1; i <= s; i++) printf("%lld\n", a[i]);
  if (flag) puts("9999999999999999999");
  return 0;
}
