#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int K;
  cin >> K;
  string nines = "9";
  for (int i = 1; i < 10; i++) {
    if (K == 0) return 0;
    printf("%d\n", i);
    K--;
  }
  int first = 1, last = 10;
  for (int i = first; i < last; i++) {
    if (K == 0) return 0;
    printf("%d%s\n", i, nines.c_str());
    K--;
  }
  last += 10;
  nines = nines + '9';
  while (true) {
    for (int i = first; i < last; i++) {
      if (K == 0) return 0;
      printf("%d%s\n", i, nines.c_str());
      K--;
    }
    first += 1;
    last += 10;
    nines = nines + '9';
  }
  return 0;
}
