#include <bits/stdc++.h>
using namespace std;
const long long INF = ~0ULL >> 2;
const int MAXN = 1E6 + 10;
int sumBit(int x) {
  static char str[32];
  sprintf(str, "%d", x);
  int ans = 0;
  for (int i = 0; str[i]; ++i) {
    ans += str[i] - '0';
  }
  return ans;
}
long long skNumber(long long k) {
  long long v = (k - 1) / 9;
  long long x = k % 9 == 0 ? 9 : k % 9;
  for (int i = 1; i <= v; ++i) {
    x = x * 10 + 9;
  }
  return x;
}
int f[MAXN];
int main() {
  int k;
  scanf("%d", &k);
  for (int i = 1; i <= k; ++i) {
    printf("%lld\n", skNumber(i));
  }
  return 0;
}
