#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int k;
  cin >> k;
  int p = 0;
  for (int i = 0; i <= 1000; i++) {
    int pw = pow(10, i);
    p += pw;
    int l = pow(9, i + 1);
    for (int j = p; j <= l; j += pw) {
      cout << j << endl;
      p = j;
      k--;
      if (!k) break;
    }
    if (!k) break;
  }
  return 0;
}
