li=[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 28, 29, 37, 38, 39, 46, 47, 48, 49, 55, 56, 57, 58, 59, 64, 65, 66, 67, 68, 69, 73, 74, 75, 76, 77, 78, 79, 82, 83, 84, 85, 86, 87, 88, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99, 191, 192, 193, 194, 195, 196, 197, 198, 199, 282]
k=int(input())
count=0
i=0
while(count!=k):
    print(li[i])
    i=i+1
    count=count+1