#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long n) {
  long long t;
  if (n == 0) {
    return 1;
  }
  if (n == 1) {
    return x % 1000000007;
  }
  t = power(x, n / 2) % 1000000007;
  if (n % 2 == 0) {
    return t * t % 1000000007;
  } else {
    return t % 1000000007 * t % 1000000007 * x % 1000000007;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  long long cnt = 1;
  while (n >= cnt) {
    if (cnt % 9 != 0) cout << cnt % 9;
    int c = cnt / 9;
    while (c != 0) {
      cout << 9;
      c--;
    }
    cout << endl;
    cnt++;
  }
  return 0;
}
