#include <bits/stdc++.h>
int main() {
  int k;
  std::cin >> k;
  for (int i = 0; i * 9 <= k; ++i) {
    for (int j = 0; j + i * 9 < k && j < 9; ++j) {
      std::cout << (j + 1);
      for (int x = 0; x < i; ++x) {
        std::cout << "9";
      }
      std::cout << "\n";
    }
  }
  return 0;
}
