#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long int;
int main() {
  long k;
  long cnt = 1;
  cin >> k;
  long runk = k / 9;
  vector<long> num(runk + 2, 0);
  num[0] = 9;
  for (long long int i = 1; i < (long long int)(k + 1); i++) {
    if (i < 10)
      cout << i << endl;
    else {
      int ra = (int)(i / 9);
      if (ra * 9 < i) {
        num[ra]++;
      } else
        num[ra - 1]++;
      string str = "";
      for (long long int j = 0; j < (long long int)(num.size()); j++) {
        if (str.length() == 0) {
          if (num[num.size() - j - 1] != 0)
            str += to_string(num[num.size() - j - 1]);
        } else {
          str += to_string(num[num.size() - j - 1]);
        }
      }
      cout << str << endl;
    }
  }
  return 0;
}
