#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t k, res = 1;
  cin >> k;
  for (int64_t snuke_num = 0; snuke_num < k;) {
    int64_t sum1 = 0;
    string s = to_string(res);
    for (int j = 0; j < s.length(); ++j) {
      sum1 += int64_t(s[j] - '0');
    }
    char f = true;
    if (res < 1000) {
      for (int64_t i = res + 1; i < res + 100; ++i) {
        int64_t sum2 = 0;
        string tmp = to_string(i);
        for (int j = 0; j < tmp.length(); ++j) {
          sum2 += int64_t(tmp[j] - '0');
        }
        if (res * sum2 > i * sum1) {
          f = false;
          break;
        }
      }
    } else {
      int64_t to_mill = 999;
      while (to_mill <= 1000000000) {
        if (to_mill > res) {
          int64_t sum = 0;
          string tmp = to_string(to_mill);
          for (int j = 0; j < tmp.length(); ++j) {
            sum += int64_t(tmp[j] - '0');
          }
          if (res * sum > to_mill * sum1) {
            f = false;
            break;
          }
        }
        to_mill = to_mill * 10 + 9;
      }
    }
    if (f) {
      cout << res << endl;
      ++snuke_num;
    }
    ++res;
  }
}
