#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using db = double;
ll f(ll n) {
  ll u = 0;
  while (n > 0) {
    u += n % 10;
    n /= 10;
  }
  return u;
}
int main(){
    ll k,s=1,a=1;
    cin>>k;
    for (ll i = 1; i <= k; i++)
    {
        cout<<s<<endl;
        if((db)s/f(s)<(db)(s+a)/f(s+a) && (db)(s+a)/f(s+a) > (db)(s+2*a)/f(s+2*a))a*=10;
        s+=a;
    }
}