#include <bits/stdc++.h>
const int MOD = 1000000007, INF = 1111111111;
using namespace std;
using lint = long long;
template <class T>
ostream &operator<<(ostream &os, const vector<T> &vec) {
  for (int i = 0; i < vec.size(); i++) {
    os << vec[i] << (i + 1 == vec.size() ? "" : " ");
  }
  return os;
}
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int K;
  cin >> K;
  for (int i = 1; i <= min(K, 9); i++) cout << i << "\n";
  K -= 9;
  int cnt = 1, nine = 1, lim = 10;
  while (K > 0) {
    if (cnt < lim) {
      cout << to_string(cnt) + string(nine, '9') << "\n";
    } else {
      cnt = nine - 1;
      lim += 10;
      nine++;
      K++;
    }
    cnt++;
    K--;
  }
  return 0;
}
