#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int K;
  cin >> K;
  if (K < 9) {
    for (int(i) = 0; (i) < (K); (i)++) cout << i + 1 << endl;
  } else {
    for (int(i) = 0; (i) < (8); (i)++) {
      cout << i + 1 << endl;
      K--;
    }
    ll ans = 9;
    string a;
    cout << ans << endl;
    while (K) {
      a = to_string(ans);
      if (a[0] == '1') {
        a[0] = '9';
        ans = stoll(a);
        cout << ans << endl;
      } else {
        a = "1" + a;
        ans = stoll(a);
        cout << ans << endl;
      }
      K--;
    }
  }
  return 0;
}
