#include <bits/stdc++.h>
int main(void) {
  int k, i, j, cnt = 0, cnt1 = 0;
  double b, d, l, ans2, ans, c;
  scanf("%d", &k);
  for (i = 1; i < k; i++) {
    ans = 0;
    cnt = 0;
    c = i;
    for (j = 15; j >= 0; j--) {
      b = pow(10, j);
      if (c >= b) {
        ans += (int)c / (int)b;
        c -= (int)c / (int)b * b;
      }
    }
    ans = i / ans;
    for (l = i + 1; l < i + 100000; l++) {
      ans2 = 0;
      d = l;
      for (j = 15; j >= 0; j--) {
        b = pow(10, j);
        if (d >= b) {
          ans2 += (int)d / (int)b;
          d -= (int)d / (int)b * b;
        }
      }
      ans2 = l / ans2;
      if (ans > ans2) {
        cnt = 1;
        break;
      }
    }
    if (cnt == 0) {
      printf("%d\n", i);
      cnt++;
    }
    if (cnt == k) {
      break;
    }
  }
}
