#include <bits/stdc++.h>
int main(void) {
  unsigned long long k;
  unsigned long long count = 0;
  scanf("%llud", &k);
  if (k <= 9) {
    for (int i = 1; i <= k; i++) {
      printf("%d\n", i);
    }
    return 0;
  }
  for (int i = 1; i <= 9; i++) {
    printf("%d\n", i);
    count++;
  }
  unsigned long long i = 19;
  unsigned long long j = 0, sum;
  while (count < k) {
    j = i;
    sum = 0;
    while (j > 0) {
      sum += j % 10;
      j /= 10;
    }
    if (sum % 10 == 0) {
      printf("%llu\n", i);
      count++;
    }
    i++;
  }
  return 0;
}
