#include <bits/stdc++.h>
using namespace std;
map<int, long long> m;
int main() {
  int k;
  scanf("%d", &k);
  int ct = 0;
  for (int i = 1; i <= 9; i++) m[ct++] = i;
  for (int i = 19; i <= 99; i += 10) {
    m[ct++] = i;
  }
  for (int i = 1; i <= 9; i++) {
    m[ct++] = 100 * i + 99;
  }
  for (int i = 10; i <= 19; i++) {
    m[ct++] = i * 100 + 99;
  }
  for (int i = 2; i <= 9; i++) {
    m[ct++] = i * 1000 + 999;
  }
  for (int i = 109; i <= 199; i += 10) {
    m[ct++] = i * 100 + 99;
  }
  for (int i = 2; i <= 9; i++) {
    m[ct++] = i * 10000 + 9999;
  }
  for (int i = 0; i < k; i++) {
    printf("%d\n", m[i]);
  }
}
