#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<long long> vec{1,   2,   3,   4,   5,   6,   7,   8,   9,   19,
                        28,  29,  37,  38,  39,  49,  57,  58,  59,  68,
                        69,  79,  87,  88,  89,  98,  99,  109, 119, 129,
                        139, 149, 159, 169, 179, 189, 199, 299, 379, 389,
                        398, 399, 499, 589, 599, 689, 699, 799, 899, 999};
  for (int i = 0; i < N; i++) {
    cout << vec[i] << endl;
  }
}
