n=int(input())
if n==1:
  print('a')
elif n==2:
  print('aa')
  print('ab')
elif n==3:
  print('aaa')
  print('aab')
  print('aac')
elif n==4:
  print('aaaa')
  print('aaab')
  print('aaac')
  print('aaad')
elif n==5:
  print('aaaaa')
  print('aaaab')
  print('aaaac')
  print('aaaad')
  print('aaaae')
elif n==6:
  print('aaaaaa')
  print('aaaaab')
  print('aaaaac')
  print('aaaaad')
  print('aaaaae')
  print('aaaaaf')
elif n==7:
  print('aaaaaaa')
  print('aaaaaab')
  print('aaaaaac')
  print('aaaaaad')
  print('aaaaaae')
  print('aaaaaaf')
  print('aaaaaag')
elif n==8:
  print('aaaaaaaa')
  print('aaaaaaab')
  print('aaaaaaac')
  print('aaaaaaad')
  print('aaaaaaae')
  print('aaaaaaaf')
  print('aaaaaaag')
  print('aaaaaaah')
elif n==9:
  print('aaaaaaaaa')
  print('aaaaaaaab')
  print('aaaaaaaac')
  print('aaaaaaaad')
  print('aaaaaaaae')
  print('aaaaaaaaf')
  print('aaaaaaaag')
  print('aaaaaaaah')
  print('aaaaaaaai')
elif n==10:
  print('aaaaaaaaaa')
  print('aaaaaaaaab')
  print('aaaaaaaaac')
  print('aaaaaaaaad')
  print('aaaaaaaaae')
  print('aaaaaaaaaf')
  print('aaaaaaaaag')
  print('aaaaaaaaah')
  print('aaaaaaaaai')
  print('aaaaaaaaaj')
  