#include <bits/stdc++.h>
int main() {
  uint64_t k;
  std::cin >> k;
  uint64_t counter = 0;
  for (int i = 1; i <= 9; i++) {
    std::cout << i << std::endl;
    counter++;
    if (counter == k) {
      return 0;
    }
  }
  for (int i = 1; i <= 9; i++) {
    std::cout << i << 9 << std::endl;
    counter++;
    if (counter == k) {
      return 0;
    }
  }
  std::string nine = "99";
  for (int end = 1; end <= 9; end++) {
    for (int i = 10; i <= end * 10 + 9; i++) {
      std::cout << i << nine << std::endl;
      counter++;
      if (counter == k) {
        return 0;
      }
    }
    for (int i = end + 1; i <= 9; i++) {
      std::cout << i << 9 << nine << std::endl;
      counter++;
      if (counter == k) {
        return 0;
      }
    }
    nine += "9";
  }
  nine.pop_back();
  for (int end = 10; end <= 99; end++) {
    for (int i = 100; i <= end * 10 + 9; i++) {
      std::cout << i << nine << std::endl;
      counter++;
      if (counter == k) {
        return 0;
      }
    }
    for (int i = end + 1; i <= 99; i++) {
      std::cout << i << 9 << nine << std::endl;
      counter++;
      if (counter == k) {
        return 0;
      }
    }
    nine += "9";
  }
  return 0;
}
