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

ll digit(ll n){
  ll num = 0;
  while(n != 0){
    n /= 10;
    num++;
  }
  return num;
}

double snuke(ll n){
  ll N = n;
  ll sum = 0;
  while(n != 0){
    sum += n % 10;
    n /= 10;
  }
  return (double)N / (double)sum;
}

ll f(ll N){
  ll d = digit(N) + 2;
  ll m = N;
  for(int i = 0; i <= d; i++){
    ll c = pow(10,i+1)*(N/pow(10,i+1) + 1) - 1;
    if(snuke(c) < snuke(m)) m = c;
  }
  return m;
}

int main(){
  ll K;
  cin >> K;
  ll N = 1;
  cout << 1 << endl;
  for(int i = 1; i < K; i++){
    cout << f(N+1) << endl;
    N = f(N+1);
  }
  return 0;
}
