#include <bits/stdc++.h>
using namespace std;
long long int sum(long long int input) {
  long long int k = 0;
  while (input > 0) {
    k += input % 10;
    input /= 10;
  }
  return k;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long int N;
  cin >> N;
  long long int temp = 1, temp2 = 1;
  cout << temp << endl;
  for (int i = 0; i < N; i++) {
    if (sum(temp + temp2) * (temp + temp2 * 10) <
        sum(temp + temp2 * 10) * (temp + temp2))
      temp2 *= 10;
    temp += temp2;
    cout << temp << endl;
  }
}
