import strutils, math

let K = stdin.readLine.parseInt
var
  i = 1
  j = 0

while j < K:
  if i == 9:
    j -= 1
  elif i.repr.len == 1:
    echo i
  else:
    echo i - 1
  j += 1

  i += 10 ^ (i.repr.len - 1)
