#include <bits/stdc++.h>
using namespace std;
int main() {
  cout << 1 << endl;
  long long x = 1;
  long long k;
  cin >> k;
  while (1) {
    if (k - 1 == 0) break;
    for (int i = 0; i < (9); i++) {
      cout << i << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 0; i < (9); i++) {
      cout << i + 1 << "9" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 0; i < (9); i++) {
      cout << i + 1 << "99" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 19; i++) {
      cout << i << "99" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 2; i <= 9; i++) {
      cout << i << "999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 29; i++) {
      cout << i << "999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 3; i <= 9; i++) {
      cout << i << "9999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
  }
}
