#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC target("tune=native")
#pragma GCC target("avx")
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
T gcd(const T &a, const T &b) {
  return a < b ? gcd(b, a) : b ? gcd(b, a % b) : a;
}
template <class T>
T lcm(const T &a, const T &b) {
  return a / gcd(a, b) * b;
}
using ll = long signed long;
using ull = long unsigned long;
using cll = long long const;
using ld = long double;
using namespace std;
int main() {
  ll k;
  cin >> k;
  vector<string> snukes;
  string base;
  while (snukes.size() < k) {
    for (long long j = 0, j_len = (9); j < j_len; j++) {
      char c = '1' + j;
      snukes.push_back(string(1, c) + base);
    }
    base += '9';
  }
  for (long long i = 0, i_len = (k); i < i_len; i++) {
    cout << snukes[i] << endl;
  }
}
