import sys

def dp(k):
  init = ['1']
  while len(init) < k:
    a = init[-1]
    if int(a[0]) < 9:
      init.append(str(int(a[0]) + 1) + a[1:])
    else:
      init.append('19' + a[1:])
  return init

  
def main():
  input = sys.stdin.readline
  K = int(input())
  print('\n'.join(dp(K)))


if __name__ == '__main__':
  main()