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

double cal(int a){
  int b=a,c=0;
  while(b)c+=b%10,b/=10;
  return 1.0*a/c;
}

signed main(){
  int k;
  cin>>k;
  int a=1,b=1;
  for(int i=0;i<k;i++){
    if(cal(a)>cal(a+b))a-=b,b*=10,i--;
    else cout<<a<<endl;
    a+=b;
  }
  return 0;
}