#include <bits/stdc++.h>
using namespace std;
int main() {
  int K, S, tmp;
  int s_cnt = 0;
  cin >> K;
  for (int i = 1; i <= 1000000000000000; i++) {
    tmp = i;
    S = 0;
    while (tmp != 0) {
      S = S + tmp % 10;
      tmp = tmp / 10;
    }
    if (i < 10) {
      cout << i << endl;
      s_cnt++;
    } else if (i < 999999999991 && S % 10 == 0) {
      cout << i << endl;
      s_cnt++;
    } else if (S % 100 == 0) {
      cout << i << endl;
      s_cnt++;
    }
    if (s_cnt == K) break;
  }
}
