#include <bits/stdc++.h>
using namespace std;
int func(int n) {
  int ans = 0;
  while (n) {
    ans += n % 10;
    n /= 10;
  }
  return ans;
}
int main() {
  long int K, count = 0, n = 0;
  bool flag = 1;
  cin >> K;
  while (flag) {
    for (int i = 1; i <= 9 && flag; i++) {
      cout << i;
      for (int j = 0; j < n; j++) {
        cout << 9;
      }
      cout << endl;
      count++;
      if (count == K) flag = 0;
    }
    n++;
  }
}
