#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  cin >> K;
  if (K < 10) {
    for (int i = 1; i <= K; i++) cout << i << "\n";
    return 0;
  }
  for (int i = 1; i <= 10; i++) cout << i << "\n";
  K -= 10;
  for (int i = 1;; i++) {
    for (int j = 1; j <= 9; j++) {
      if (K <= 0) return 0;
      cout << j;
      for (int k = 0; k < i; k++) cout << "9";
      cout << "\n";
      K--;
    }
  }
}
