#include <bits/stdc++.h>
using namespace std;
vector<vector<int> > ans;
vector<vector<vector<int> > > vvvi;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long K;
  cin >> K;
  long long i = 1, t = 1;
  while (K > 0) {
    long long a = 0, j = i;
    while (i) {
      a += j % 10;
      j /= 10;
      if (j < 10) {
        a += j;
        break;
      }
    }
    if (t * 10000000000 < i / a * 10000000000) {
      i += 9 * t;
      t *= 10;
    } else {
      cout << i << endl;
      i += t;
      K--;
    }
  }
  return 0;
}
