#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e7 + 7;
const long long N = 2e5 + 10;
long long gcd(long long n, long long m) {
  if (n == 0)
    return m;
  else
    return gcd(m % n, n);
}
long long power(long long a, long long b) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = (ans * a) % MOD;
    b /= 2;
    a = (a * a) % MOD;
  }
  return ans;
}
int32_t main() {
  long long k;
  cin >> k;
  for (long long i = 1; i <= k; i++) {
    if (i <= 9) {
      cout << i << endl;
    } else {
      long long n = i / 9;
      long long r = i % 9;
      if (r > 0) {
        cout << r;
        for (long long j = 1; j <= n; j++) {
          cout << "9";
        }
        cout << endl;
      } else {
        for (long long j = 1; j <= n; j++) {
          cout << "9";
        }
        cout << endl;
      }
    }
  }
}
