#include <bits/stdc++.h>
int S(int num);
int main() {
  printf("请输入K: ");
  int i = 0;
  long long j = 1;
  int K;
  scanf("%d", &K);
  while (1) {
    long long m = j + 1;
    if (m / S(m) >= j / S(j) && i < K) {
      i++;
      printf("%lld\n", j);
    }
    j++;
    if (i >= K) {
      break;
    }
  }
  return 0;
}
int S(int y) {
  int result = 0, x;
  while (y != 0) {
    x = y % 10;
    result += x;
    y = (int)(y / 10);
  }
  return result;
}
