#include <bits/stdc++.h>
using namespace std;
int a, b, c, d;
string s;
int main() {
  int k;
  cin >> k;
  for (int i = 0; i < 9; i++) {
    cout << (i + 1) << endl;
    k--;
    if (k == 0) return 0;
  }
  long long t = 10;
  for (int i = 2; i <= 10; i++) {
    cout << (t * ((long long)i) - 1LL) << endl;
    k--;
    if (k == 0) return 0;
  }
  t = 100;
  for (int i = 2; i <= 10; i++) {
    cout << (t * ((long long)i) - 1LL) << endl;
    k--;
    if (k == 0) return 0;
  }
  t = 100;
  for (int i = 0; i < 18; i++) {
    for (int j = 2; j <= 10; j++) {
      cout << (t * ((long long)j) - 1LL) << endl;
      k--;
      if (k == 0) return 0;
    }
    for (int j = 2; j <= 10; j++) {
      cout << (t * 10LL * ((long long)j) - 1LL) << endl;
      k--;
      if (k == 0) return 0;
    }
    t *= 10;
  }
  return 0;
}
