#include <bits/stdc++.h>
using namespace std;
const int N = 4e5 + 5;
const int MOD = 1e9 + 7;
long long ask(long long x) {
  long long ans = 0;
  while (x) {
    ans += x % 10;
    x /= 10;
  }
  return ans;
}
bool check(long long n) {
  for (long long m = n + 1; m <= n + 1 + 100; m++) {
    if (n * ask(m) > m * ask(n)) return false;
  }
  return true;
}
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int k;
  cin >> k;
  if (k <= 9) {
    for (int i = 1; i <= k; i++) cout << i << "\n";
  } else if (k <= 18) {
    for (int i = 1; i <= 9; i++) cout << i << "\n";
    for (int i = 10; i <= k; i++) cout << 9 + 10 * (i - 9) << "\n";
  } else if (k <= 36) {
    for (int i = 1; i <= 9; i++) cout << i << "\n";
    for (int i = 10; i <= 18; i++) cout << 9 + 10 * (i - 8) << "\n";
    for (int i = 19; i <= k; i++) cout << (i - 18) << "99";
  } else {
    for (int i = 1; i <= 9; i++) cout << i << "\n";
    for (int i = 10; i <= 18; i++) cout << 9 + 10 * (i - 8) << "\n";
    for (int i = 19; i <= 36; i++)
      cout << (i - 18) << "99"
           << "\n";
    for (int i = 37; i <= k; i++)
      cout << i - 36 << "999"
           << "\n";
  }
  return 0;
}
