K = gets.to_i

i = 0
cnt = 0
nines = 0
left = 1
while true
  puts "#{left}#{'9'*nines}"
  if left == 9
    nines += 1
    left = 1
  else
    left += 1
  end
  i += 1
  cnt += 1
  break if cnt == K
end
