#include <bits/stdc++.h>
long long int s(long long int a) {
  long long int sum = 0;
  while (a != 0) {
    sum = sum + (a % 10);
    a = a / 10;
  }
  return sum;
}
int main() {
  long long int k, i;
  scanf("%lld", &k);
  long long int temp = 1;
  for (i = 1; i <= k; i++) {
    while (s(temp) != i) {
      temp++;
    }
    printf("%lld\n", temp);
  }
}
