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

long f(long x){
  string s = std::to_string(x);
  int n = s.size();
  long y = 0;
  for(int i = 0;i < s.size();i++){
    y += (s.at(i) - '0');
  }
  long ans = x;
  for(int i = n-2;i >= 0;i--){
    for(int j = n-1;j >= i+1;j--){
      s.at(j) = '9';
    }
    for(char j = s.at(i);j <= '9';j++){
      s.at(i) = j;
      //cout << s << endl;
      double x2 = std::stod(s);
      double y2 = 0;
      for(int k = 0;k < s.size();k++){
        y2 += (s.at(k) - '0');
      }
      double x3 = x;double y3 = y;
      //cout << x2 << ' ' << y2 << ' ' << x3 << ' ' << y3 << endl; 
      if(x3/y3 > x2/y2){
        ans = x2;
        x = x2;
        y = y2;
        //cout << ans << endl;
      }
    }
  }
  return ans;
}
int main(){
  long k;
  cin >> k;
  long x = 2;
  cout << 1 << endl;
  for(int i = 0;i < k-1;i++){
    long y = f(x);
    cout << y << endl;
    x = y+1;
  }
}