#include <stdio.h>

int main(void){
  int k, i;
  scanf("%d", &k);
  int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 28, 29, 37, 38, 39, 49, 57, 58, 59, 68, 69, 79, 87, 88, 89, 97, 98, 99};
  for(i = 0; i < 28; i++ ){
    printf("%d\n", a[i]);
    k--;
    if(k == 0)
      goto a;
  }
  int b = a[i-1];
  while(k != 0){
    b += 10;
    printf("%d\n",b);
    k--;
  }
  a:;
  return 0;
}
