#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
const int INF = 1e9;
long long A, B, C, D, E, F, G, H, N, M, L, K, P, Q, R, W, X, Y, Z;
string S, T;
int main() {
  cin >> K;
  if (K <= 9)
    for (int i = 0; i < (int)(K); i++) cout << i + 1;
  else {
    for (int i = 0; i < (int)(9); i++) cout << i + 1 << endl;
    K -= 9;
    for (long long j = 1, k = 10; K != 0; j = j * 10 + 1, k *= 10) {
      for (int i = (1); i < (int)(10); i++) {
        cout << k * i + j * 9 << endl;
        K--;
        if (K == 0) return 0;
      }
    }
  }
  return 0;
}
