#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);
      if (i <= 10)
        std::cout << std::string(i, '9');
      else {
        std::cout << 0;
        std::cout << std::string(i - 1, '9');
      }
      std::cout << "\n";
    }
  }
  return 0;
}
