#include <bits/stdc++.h>
using namespace std;
int fS(int i) {
  int ans = 0;
  while (i > 0) {
    ans += i % 10;
    i /= 10;
  }
  return ans;
}
int ndig(int n) {
  int count = 0;
  while (n > 0) {
    n /= 10;
    count++;
  }
  return count;
}
int main() {
  int K;
  cin >> K;
  if (K < 10) {
    for (int i = 1; i < K; i++) cout << i << endl;
    return 0;
  }
  for (int i = 1; i < 9; i++) cout << i << endl;
  K -= 8;
  int counter = 0;
  int i = 9;
  for (;;) {
    int Sn = fS(i);
    int div = ndig(i);
    int divv = (int)pow(10, div - 1);
    int j = i + divv;
    int Sj = fS(j);
    double ratio1 = (float)i / (float)Sn;
    double ratio2 = (float)j / (float)Sj;
    if (ratio1 < ratio2) {
      counter++;
      cout << i << "," << divv << endl;
    }
    if (counter >= K) {
      break;
    }
    i += (int)pow(10, ndig(j) - 1);
  }
  return 0;
}
