#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, m, i, j, k, prog = 1, val = 1;
  cin >> k;
  while (k) {
    for (i = 0; i < 9 and k > 0; i++, k--) {
      cout << val;
      val += prog;
      if (k > 1) cout << endl;
    }
    val -= prog;
    prog *= 10;
    val += prog;
  }
  return (0);
}
