#include <bits/stdc++.h>
using namespace std;
const int N = 4e5 + 5;
const int MOD = 1e9 + 7;
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long k;
  cin >> k;
  if (k <= 9) {
    for (long long i = 1; i <= k; i++) cout << i << "\n";
  } else if (k <= 18) {
    for (long long i = 1; i <= 9; i++) cout << i << "\n";
    for (long long i = 10; i <= k; i++) cout << 9 + 1ll * 10 * (i - 9) << "\n";
  } else if (k <= 36) {
    for (long long i = 1; i <= 9; i++) cout << i << "\n";
    for (long long i = 10; i <= 18; i++) cout << 9 + 1ll * 10 * (i - 8) << "\n";
    for (long long i = 19; i <= k; i++) cout << 1ll * (i - 18) << "99";
  } else {
    for (long long i = 1; i <= 9; i++) cout << 1ll * i << "\n";
    for (long long i = 10; i <= 18; i++) cout << 9 + 1ll * 10 * (i - 8) << "\n";
    for (long long i = 19; i <= 36; i++)
      cout << 1ll * (i - 18) << "99"
           << "\n";
    for (long long i = 37; i <= k; i++)
      cout << 1ll * i - 36 << "999"
           << "\n";
  }
  return 0;
}
