#include <bits/stdc++.h>
using namespace std;
long long K;
string s("19");
int main(void) {
  cin >> K;
  int i = 1;
  for (; i <= K && i <= 9; ++i) cout << i << endl;
  int j = 1;
  for (; i <= K && j <= 9; ++i) cout << j++ << "9" << endl;
  j = 1;
  for (; i <= K && j <= 19; ++i) cout << j++ << "99" << endl;
  j = 2;
  for (; i <= K && j <= 29; ++i) cout << j++ << "999" << endl;
  j = 3;
  for (; i <= K && j <= 39; ++i) cout << j++ << "9999" << endl;
  j = 4;
  for (; i <= K && j <= 49; ++i) cout << j++ << "99999" << endl;
  j = 5;
  for (; i <= K && j <= 59; ++i) cout << j++ << "999999" << endl;
  j = 6;
  for (; i <= K && j <= 69; ++i) cout << j++ << "9999999" << endl;
  j = 7;
  for (; i <= K && j <= 79; ++i) cout << j++ << "99999999" << endl;
  j = 8;
  for (; i <= K && j <= 89; ++i) cout << j++ << "999999999" << endl;
  j = 9;
  for (; i <= K && j <= 99; ++i) cout << j++ << "9999999999" << endl;
  j = 10;
  for (; i <= K && j <= 109; ++i) cout << j++ << "99999999999" << endl;
  j = 11;
  for (; i <= K && j <= 119; ++i) cout << j++ << "999999999999" << endl;
  j = 12;
  for (; i <= K && j <= 129; ++i) cout << j++ << "9999999999999" << endl;
  j = 13;
  for (; i <= K && j <= 139; ++i) cout << j++ << "99999999999999" << endl;
  return 0;
}
