#include <bits/stdc++.h>
using namespace std;
constexpr auto INF = INT_MAX >> 1;
constexpr auto LINF = 5000000000000000;
constexpr auto MOD = 1000000007;
int main() {
  int k;
  cin >> k;
  queue<long long> que;
  for (int i = 1; i <= (9); i++) que.push(i);
  for (int i = 1; i <= (9); i++) que.push(i * 10 + 9);
  for (int j = 0; j < (k); j++) {
    long long i = que.front();
    que.pop();
    cout << i << endl;
    if (j <= 9) continue;
    que.push((i - 9) * 10 + 9);
  }
}
