#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int K;
  cin >> K;
  vector<string> s = {"1", "2", "3", "4", "5", "6", "7", "8", "9"};
  while (K > 0) {
    if (K > 9) {
      for (int i = 0; i < 9; i++) {
        cout << s[i] << endl;
        s[i] = s[i] + '9';
      }
      K -= 9;
    } else {
      for (int i = 0; i < K; i++) {
        cout << s[i] << endl;
        K = 0;
      }
    }
  }
  return 0;
}
