#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const int INF = 1e9 + 1;
const int LLINF = 1e18 + 1;
int main() {
  ll K;
  cin >> K;
  for (int i = 1; i <= 9; i++) {
    cout << i << endl;
    K--;
    if (K <= 0) return 0;
  }
  for (int i = 1; i <= 9; i++) {
    cout << i << "9" << endl;
    K--;
    if (K <= 0) return 0;
  }
  for (int i = 1; i <= K; i++) {
    cout << i << "99" << endl;
    K--;
    if (K <= 0) return 0;
  }
  return 0;
}
