#include <bits/stdc++.h>
using namespace std;
using namespace std;
int n;
int a[10] = {9, 19, 29, 39, 49, 59, 69, 79, 89}, num = 27;
long long ans[10000] = {1,   2,   3,   4,   5,   6,   7,   8,   9,
                        19,  29,  39,  49,  59,  69,  79,  89,  99,
                        199, 299, 399, 499, 599, 699, 799, 899, 999};
int main() {
  for (long long i = 1099, j = 0, c = 100; i <= 109999999999;
       i = i * 10 + 9, j++, c *= 10) {
    for (int z = 0; z <= a[j]; z++) {
      ans[num++] = i + c * z;
    }
    for (int z = a[j] + 10; z <= 89; z += 10) {
      ans[num++] = i + c * z;
    }
  }
  for (long long i = 1099999999999, c = 100000000000; i <= 1099999999999999;
       i = i * 10 + 9, c *= 10) {
    for (int z = 0; z <= 89; z++) {
      ans[num++] = i + c * z;
    }
  }
  scanf("%d", &n);
  for (int i = 0; i < n; i++) printf("%lld\n", ans[i]);
}
