#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  int count = 0;
  int i = 1;
  while (1) {
    int j = i + 1;
    while (1) {
      string si = to_string(i);
      int s1 = 0;
      for (int a = 0; a < si.size(); a++) s1 += (int)(si[a] - '0');
      string sj = to_string(j);
      int s2 = 0;
      for (int a = 0; a < sj.size(); a++) s2 += (int)(sj[a] - '0');
      if ((i / s1) <= (j / s2))
        break;
      else
        j++;
    }
    cout << i << endl;
    i++;
    count++;
    if (count == k) break;
  }
}
