#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const double eps = 1e-7;
const long long MOD = 1000000007LL;
const int INF = 0x3f3f3f3f;
const int _NAN = -0x3f3f3f3f;
const double EULC = 0.5772156649015328;
const int NIL = -1;
template <typename T>
void read(T &x) {
  x = 0;
  char ch = getchar();
  long long f = 1;
  while (!isdigit(ch)) {
    if (ch == '-') f *= -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - 48;
    ch = getchar();
  }
  x *= f;
}
const int maxn = 1e6 + 10;
int ls[maxn] = {
    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,     98,     99,
    109,    119,    129,    139,    149,    159,    169,    179,    189,
    199,    299,    379,    389,    398,    399,    499,    589,    599,
    689,    699,    799,    899,    999,    1099,   1199,   1299,   1399,
    1499,   1599,   1699,   1799,   1899,   1999,   2599,   2699,   2799,
    2899,   2999,   3999,   4999,   5999,   6999,   7999,   8999,   9999,
    10999,  11999,  12999,  13999,  14999,  15999,  16999,  17999,  18999,
    19999,  20999,  21999,  22999,  23999,  24999,  25999,  26999,  27999,
    28999,  29999,  39999,  49999,  59999,  69999,  79999,  89999,  99999,
    109999, 119999, 129999, 139999, 149999, 159999, 169999, 179999, 189999,
    199999, 209999, 219999, 229999, 239999, 249999, 259999, 269999, 279999,
    289999, 299999, 309999, 319999, 329999, 339999, 349999, 359999, 369999,
    379999, 389999, 399999, 499999, 599999, 699999, 799999, 899999, 999999};
int main(void) {
  int k;
  while (~scanf("%d", &k)) {
    for (int i = 0; i < k; ++i) printf("%d\n", ls[i]);
  }
  return 0;
}
