#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 < (8); i++) {
      cout << i + 2 << 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;
    for (int i = 10; i <= 39; i++) {
      cout << i << "9999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 4; i <= 9; i++) {
      cout << i << "99999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 49; i++) {
      cout << i << "99999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 5; i <= 9; i++) {
      cout << i << "999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 59; i++) {
      cout << i << "999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 6; i <= 9; i++) {
      cout << i << "9999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 69; i++) {
      cout << i << "9999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 7; i <= 9; i++) {
      cout << i << "99999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 79; i++) {
      cout << i << "99999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 8; i <= 9; i++) {
      cout << i << "999999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 89; i++) {
      cout << i << "999999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 9; i <= 9; i++) {
      cout << i << "9999999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 99; i++) {
      cout << i << "9999999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 99; i++) {
      cout << i << "99999999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
    for (int i = 10; i <= 99; i++) {
      cout << i << "999999999999" << endl;
      k--;
      if (k - 1 == 0) break;
    }
    if (k - 1 == 0) break;
  }
}
