#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <cfloat>
#include <complex>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;

ull s(ull arg) {
  ull ret = 0;
  while (arg > 0) {
    ret += arg % 10;
    arg /= 10;
  }

  return ret;
}

int main() {
  ull k;
  cin >> k;

  ull base = 1;
  ull diff = 1;
  while (k > 0) {
    if (((double)base / s(base)) <= ((double)(base + diff) / s(base + diff))) {
      cout << base << endl;
      base += diff;
      k--;
    } else {
      base -= diff;
      diff *= 10;
      base += diff;
    }
  }

  return 0;
}