#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vector<bool>>;
using vs = vector<string>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using msi = map<string, int>;
template <typename T>
void say(T s) {
  cout << s << "\n";
}
template <typename T>
void say(vector<T> s) {
  auto itr = s.begin();
  cout << *(itr++);
  while (itr != s.end()) {
    cout << " " << *(itr++);
  }
  cout << "\n";
}
void yn(bool b) {
  if (b)
    say("Yes");
  else
    say("No");
}
template <typename T>
void maxi(T &a, T b) {
  a = max(a, b);
}
template <typename T>
void mini(T &a, T b) {
  a = min(a, b);
}
ll bitsum(ll a) {
  int ans = 0;
  string s = to_string(a);
  const int N = s.size();
  for (char x : s) ans += x - '0';
  return ans;
}
int main() {
  double min1 = 1;
  double min2;
  int vs = 0;
  string s;
  int K;
  cin >> K;
  ;
  int cnt = 0;
  for (ll k = 0;; ++k) {
    for (ll l = 1;; ++l) {
      s = "";
      s += l + '0';
      for (int i = 0; i < k; ++i) s += "9";
      ll n = stoi(s);
      min2 = (double)n / bitsum(n);
      if (min2 >= min1) {
        say(s);
        ++cnt;
      }
      if (cnt >= K) return 0;
    }
  }
}
