#include <bits/stdc++.h>
using namespace std;
constexpr double PI = 3.14159265358979323846;
constexpr long long INF = 1 << 29;
constexpr long long MOD = (long long)1e9 + 7;
constexpr double EPS = 1e-7;
constexpr int dy[4] = {0, 1, 0, -1};
constexpr int dx[4] = {1, 0, -1, 0};
struct edge {
  long long to;
  long long cost;
};
long long Pow(long long a, long long b) {
  long long x = 1;
  while (b > 0) {
    if (b & 1) x = x * a;
    a = a * a;
    b = b >> 1;
  }
  return x;
}
double Sn(string N) {
  long long res = 0;
  for (int i = (int)(0); i < (int)(N.length()); i++) {
    res += int(N[i]) - '0';
  }
  return stoll(N) / (double)res;
}
int main() {
  long long K;
  cin >> K;
  vector<string> num(9);
  for (int i = (int)(0); i < (int)(9); i++) num[i] = to_string(i + 1);
  for (int i = (int)(0); i < (int)(K); i++) {
    cout << num[i % 9] << endl;
    if (num[i % 9].length() == 3) {
      string tmp = num[i % 9];
      num[i % 9] = '1' + tmp;
    } else
      num[i % 9].push_back('9');
  }
  return 0;
}
