#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long k;
  cin >> k;
  long long count = 0;
  long long n = 1;
  while (count < k) {
    long long x = 0;
    string s = to_string(n);
    for (auto r : s) {
      x += (long long)(r - '0');
    }
    bool ok = true;
    if (n < 10000) {
      for (long long m = n + 1; m < (long long)(n + 1000000); m++) {
        long long y = 0;
        string t = to_string(m);
        for (auto r : t) {
          y += (long long)(r - '0');
        }
        if (n * y > m * x) {
          ok = false;
          break;
        }
      }
    } else {
      long long m = 999;
      while (m <= 100000000000000) {
        if (m > n) {
          long long y = 0;
          string t = to_string(m);
          for (auto r : t) {
            y += (long long)(r - '0');
          }
          if (n * y > m * x) {
            ok = false;
            break;
          }
        }
        m = m * 10 + 9;
      }
    }
    if (ok) {
      cout << n << "\n";
      count++;
    }
    n++;
  }
  return 0;
}
