#include <bits/stdc++.h>
using namespace std;
static const long long maxLL = (long long)1 << 62;
const int mod = 1000000007;
int dy[] = {-1, 0, 1, 0};
int dx[] = {0, 1, 0, -1};
signed main() {
  int n;
  cin >> n;
  if (n < 10) {
    for (int i = 1; i < n; i++) cout << i << endl;
  } else {
    for (int i = 1; i < 10; i++) cout << i << endl;
    int t = 1, cnt = 9;
    bool can = false;
    while (1) {
      for (int i = 10 * t + 9; i >= 10 * t; i--) {
        cout << i << endl;
        cnt++;
        if (cnt == n) {
          can = true;
          break;
        }
      }
      t++;
      if (can) break;
    }
  }
  return 0;
}
