#include <bits/stdc++.h>
using namespace std;
const int max_n = 100;
int main() {
  int k;
  cin >> k;
  for (int i = 0; i < k; i++) {
    if (i < 9) {
      cout << i + 1 << endl;
    } else if (i < 18) {
      string ans = "";
      stringstream ss;
      ss << (i - 9 + 1);
      ss >> ans;
      ans += '9';
      cout << ans << endl;
    } else {
      int count = i / 9;
      string ans = "";
      stringstream ss;
      int a = i % 9 + 1;
      ss << a;
      ss >> ans;
      while (count--) {
        ans += '9';
      }
      cout << ans << endl;
    }
  }
  cin >> k;
  return 0;
}
