#include <bits/stdc++.h>
using namespace std;
const long long siz = 1e6 + 7;
const long long mod = 1e9 + 7;
long long arr[siz];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  vector<long long> ans;
  long long k;
  cin >> k;
  for (long long i = 1; i <= 9; i++) ans.push_back(i);
  if (k <= 9)
    for (long long i = 1; i <= k; i++) cout << ans[i - 1] << endl;
  else {
    for (long long i = 1; i <= 9; i++) {
      cout << ans[i - 1] << endl;
      k--;
    }
    long long pw = 10;
    long long x = 9;
    while (k > 0) {
      for (long long i = 0; i < 9 and k > 0; i++) {
        x = x + pw;
        cout << x << endl;
        k--;
      }
      pw = pw * 10;
    }
  }
}
