import sys
K = int(raw_input())
c = 0
l = 0
for i in range(0, 20):
  for j in range(1, max(10, i*10)):
    k = ((10**i)*j)-1
    if k <= l:
      continue
    l = k
    print k
    c += 1
    if c >= K:
      sys.exit(0)