#include<iostream>
using namespace std;
#define ll long long
#define rep(i,n) for(int i=0;i<(n);i++)

int digits(ll n){
  ll SUM=0;
  while(n!=0){
    SUM+=n%10;
    n=n/10;
  }
  return SUM;
}
bool compare(ll x,ll y){
  return digits(y)*x<=y*digits(x);
}

int main(){
  ll k;cin>>k;
  ll d=1,Current=0;
  rep(i,k){
    ll x=Current+d,y=Current+d*10;
    if(compare(x,y)){
      Current=x;
    }else{
      Current=y;
      d*=10;
    }
    cout<<Current<<endl;
  }
  return 0;
}