#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long K;
  cin >> K;
  for (unsigned long long i = 1; i <= K; ++i) {
    if (i < 10) {
      cout << i << endl;
    } else {
      unsigned long long target = i;
      unsigned long long tmp = target / 9;
      unsigned long long val = (target % 9) * pow(10, tmp);
      for (unsigned long long j = 0; j < tmp; ++j) {
        val += 9 * pow(10, j);
      }
      cout << val << endl;
    }
  }
}
