K = int(input())

n = 0
S = [1, 2, 3, 4, 5, 6, 7, 8, 9]
while K > 0:
  if 9 <= K:
    for c in S:
      print("{}{}".format(c, "9" * n))
    n += 1
    K -= 9
  else:
    for c in S[:K]:
      print("{}{}".format(c, "9" * n))
    K = 0
    
