#include <bits/stdc++.h>
using namespace std;

#define rep(i,j,n) for(int i=(j);i<(n);i++)
#define all(i) i.begin(),i.end()
#define rall(i) i.rbegin(),i.rend()
#define INF 1e9
#define LINF 1e18
const int mod = 1e9+7;

typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int, int> pi;
typedef long long i64;

i64 sum(i64 num) {
  i64 res = 0;
  while(num) {
    res += num % 10;
    num /= 10;
  }
  return res;
}

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

  int k;
  cin >> k;
  cout << 1 << endl;

  i64 n = 1, d = 1;
  rep(i, 1, k) {
    if(sum(n + d) * (n + 10 * d) < sum(n + 10 * d) * (n + d)) d *= 10;
    n += d;
    cout << n << endl;
  }
}
