#include <bits/stdc++.h>
const int MOD = 1000000007, INF = 1111111111;
using namespace std;
using lint = long long;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int K;
  cin >> K;
  string nine = "9";
  int cnt = 1;
  for (int i = 1; i <= 9; i++) cout << i << "\n";
  K -= 9;
  while (K > 0) {
    for (int i = max(cnt - 1, 1); i < 10 * cnt; i++) {
      cout << to_string(i) + nine << "\n";
      K--;
      if (K == 0) break;
    }
    nine += '9';
    cnt++;
  }
  return 0;
}
