#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int tot = 0;
long long d[N];
int check(int x) {
  int ans = 0;
  for (; x; x /= 10) ans += x % 10;
  return ans;
}
int main() {
  for (int i = 1; i <= 9; ++i) d[++tot] = i;
  long long now = 0, base = 1;
  for (int i = 2; i <= 15; ++i) {
    now = now * 10 + 9;
    base *= 10;
    for (int j = 1; j <= 9; ++j) {
      d[++tot] = base * j + now;
    }
  }
  int k;
  scanf("%d", &k);
  for (int i = 1; i <= k; ++i) printf("%lld\n", d[i]);
  return 0;
}
