#include <bits/stdc++.h>
using namespace std;
const int lmt = 10000;
inline int digit_sum(int x) {
  int ans = 0;
  for (; x > 0; x /= 10) ans += x % 10;
  return ans;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  vector<long long> ans;
  for (int i = lmt - 1, mn = lmt; i >= 1; i--) {
    int x = i / digit_sum(i);
    if (mn >= x) {
      mn = x;
      ans.push_back(i);
    }
  }
  reverse(ans.begin(), ans.end());
  long long lvl = 1000;
  for (int l = 5; l < 15; l++) {
    int x = min(10, l - 2);
    for (int i = 10; i < 10 * x; i++) ans.push_back(lvl * (i + 1) - 1);
    for (int i = x + 1; i <= 10; i++) ans.push_back(lvl * 10 * i - 1);
    lvl *= 10;
  }
  int K;
  cin >> K;
  for (int i = 0; i < K; i++) cout << ans[i] << '\n';
  return 0;
}
