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

int64_t nextSnuke(int64_t n) {
    if(n <= 9)
        return n;

    int64_t best_num = 0;
    int64_t best_denom = -1;
    
    vector<int> d;
    int64_t aux = n;

    while(aux > 0) {
        d.push_back(aux % 10);
        aux /= 10;
    }

    int sz = d.size();

    for(int i = 0; i < sz; ++i) {
        vector<int> t = d;
        for(int j = 0; j <= i; ++j)
            t[j] = 9;
        int64_t num = 0;
        int64_t denom = 0;

        for(int j = sz - 1; j >= 0; --j) {
            num = 10LL * num + t[j];
            denom += t[j];
        }
         
        if(best_denom == -1 or best_num * denom > num * best_denom) {
            best_denom = denom;
            best_num = num;
        }
    }
    
    return best_num;
}

int main() {
    int k; cin >> k;
    
    int64_t temp = 1;
    for(int i = 0; i < k; i += 1) {
        cout << temp << "\n";
        temp = nextSnuke(temp + 1);
    }
}