#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename... t>
using V = vector<t...>;
template <typename t>
void print(ostream& os, const t& a) {
  os << a << '\n';
}
template <typename t, typename... v>
void print(ostream& os, const t& a, v&&... b) {
  os << a << ' ';
  print(os, b...);
}
inline string gen(int s) {
  int dl = (s + 8) / 9;
  if (s % 9)
    return string(1, (s % 9) + '0') + string(dl - 1, '9');
  else
    return string(dl, '9');
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int k;
  cin >> k;
  for (int i = 1; i <= k; ++i) print(cout, gen(i));
}
