k = int(''.join(input()))
n = 1
f = 1
min = 0

while k > 0:
  if n < 10:
    min = n
    print(min)
    n = n + 1
    k = k-1
    
  else:
    str_n = str(n)
    ans = str_n[0]
    numlen = len(str_n) - 1
    
    for i in range(numlen):
      ans = ans + '9'
    numans = int(ans)
    if numans > min:
      min = numans
      print(min)
      n = n+1
      k = k-1
    else:
      n = n+1