#include <bits/stdc++.h>
int main(void) {
  int k;
  scanf("%d", &k);
  int i = 1;
  int val;
  int a;
  int ct = 10;
  int arr[9] = {0};
  while (ct < 100) {
    a = 0;
    val = ct + 9;
    while (val) {
      a += val % 10;
      val /= 10;
    }
    arr[ct / 10 - 1] = (ct + 9) / a;
    ct += 10;
  }
  while (k) {
    val = i;
    a = 0;
    if (val < 10) {
      printf("%d\n", i);
      k--;
    } else if (val < 100) {
      while (val) {
        a += val % 10;
        val /= 10;
      }
      if ((i / a) == arr[i / 10 - 1]) {
        printf("%d\n", i);
        k--;
      }
    } else {
      if (val % 10 == 9) {
        printf("%d\n", val);
        k--;
      }
    }
    i++;
  }
  return 0;
}
