#include <bits/stdc++.h>
using namespace std;
long long inf = (long long)1e15;
vector<long long> ans;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long cur = 1;
  long long unit = 1;
  long long f = 0;
  for (int i = 1; i <= 14; ++i) {
    unit *= 10;
    f += 9;
    for (int j = 1; j <= 9; ++j) {
      if (i == 1) {
        ans.push_back(j);
        continue;
      } else if (i == 2) {
        ans.push_back(j * 10 + 9);
        continue;
      } else if (i == 3) {
        ans.push_back(j * 100 + 99);
      } else {
        if (j <= i - 3)
          for (int k = 0; k <= 9; ++k) {
            ans.push_back(j * (unit / 10) + k * (unit / 100) + (unit / 100) -
                          1);
          }
        else {
          ans.push_back(j * (unit / 10) + 9 * (unit / 100) + (unit / 100) - 1);
        }
      }
    }
  }
  int k;
  cin >> k;
  for (int i = 0; i < k; ++i) cout << ans[i] << "\n";
  return 0;
}
