#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
using Graph = vector<vector<int>>;
using Edge = map<pair<int, int>, int>;
template <typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val) {
  std::fill((T *)array, (T *)(array + N), val);
}
long long gcd(long long a, long long b) {
  if (a % b == 0)
    return (b);
  else
    return (gcd(b, a % b));
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
int main() {
  cout << fixed << setprecision(15);
  long long K;
  cin >> K;
  if (K < 10) {
    for (long long i = 1; i <= K; i++) {
      cout << i << endl;
    }
  } else {
    for (long long i = 1; i <= 9; i++) {
      cout << i << endl;
    }
    for (long long i = 1; i <= K - 9; i++) {
      cout << i << 9 << endl;
    }
  }
  return 0;
}
