#include <bits/stdc++.h>
using namespace std;
int main() {
  long long k;
  cin >> k;
  int x[20] = {0};
  if (k <= 9) {
    for (long long i = 1; i <= k; i++) {
      cout << i << endl;
    }
  } else {
    for (long long i = 1; i <= 9; i++) {
      cout << i << endl;
    }
    x[0] = 0;
    x[1] = 9;
    int y = 2;
    for (long long i = 1; i <= k - 9; i++) {
      x[0]++;
      for (long long j = 0; x[j] != 0; j++) {
        cout << x[j];
      }
      cout << endl;
      if (x[0] == 9) {
        x[0] = 0;
        x[y++] = 9;
      }
    }
  }
  return 0;
}
