#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const long long dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
long long Digit_Sum(long long n) {
  long long Cmp = 0;
  while (n) {
    Cmp += n % 10;
    n /= 10;
  }
  return Cmp;
}
double Value(long long n) { return (double)n / Digit_Sum(n); }
long long Digit(long long n) {
  long long Cmp = 0;
  while (n) {
    n /= 10;
    Cmp++;
  }
  return Cmp;
}
signed main() {
  long long k, Cnt = 0;
  double Max = -1, Min = INF;
  cin >> k;
  if (k <= 9) {
    for (long long i = 1; i <= k; i++) {
      cout << i << endl;
    }
    return 0;
  }
  for (long long i = 1; i <= 9; i++) {
    cout << i << endl;
  }
  long long Cnt2 = 9, Cmp = 9;
  while (Cnt2 < k) {
    cout << Cmp + pow(10, Digit(Cmp)) << endl;
    Cmp += pow(10, Digit(Cmp) - 1), Cnt2++;
  }
  return 0;
}
