#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  int pas = 0;
  int nr = 0;
  int v = 0;
  while (nr < k) {
    if (pas < 3) {
      nr += 9;
      v = 9;
    } else if (pas >= 3 && pas < 11) {
      nr += 9 + pas - 2;
      v = 9 + pas - 2;
    } else {
      nr += 18;
      v = 18;
    }
    pas++;
  }
  pas--;
  nr = nr - v;
  int t = k - nr;
  for (int i = 0; i < pas; i++) {
    for (int j = 1; j <= 9; j++) {
      if (j <= i - 2) {
        cout << j;
        cout << 0;
        for (int k = 0; k < i - 1; k++) {
          cout << 9;
        }
        cout << endl;
      }
      cout << j;
      for (int k = 0; k < i; k++) {
        cout << 9;
      }
      cout << endl;
    }
  }
  int l = 1;
  int i = 1;
  while (i <= t) {
    if (l <= pas - 2) {
      cout << l;
      cout << 0;
      for (int k = 0; k < pas - 1; k++) {
        cout << 9;
      }
      i++;
      cout << endl;
    }
    if (i <= t) {
      cout << l;
      for (int k = 0; k < pas; k++) {
        cout << 9;
      }
      cout << endl;
      i++;
    }
    l++;
  }
  return 0;
}
