#include <bits/stdc++.h>
using namespace std;
const int MOD = (int)1e9 + 7;
const int MAX = 1e6;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  vector<long long int> v;
  for (int i = 1; i <= 9; i++) v.push_back(i);
  long long int n = 9, lim = 1e15, ten = 10;
  while (n <= lim) {
    for (int i = 1; i <= 9; i++) {
      long long int temp = i * ten;
      temp += n;
      v.push_back(temp);
    }
    n *= 10;
    n += 9;
    ten *= 10;
  }
  int k = 0;
  cin >> k;
  for (int i = 0; i < k; i++) cout << v[i] << endl;
  return 0;
}
