n=int(input())
if n==1:
  print('a')
if n==2:
  print('aa')
  print('ab')
if n==3:
  print('aaa')
  print('aab')
  print('abc')
if n==4:
  print('aaaa')
  print('aaab')
  print('aabc')
  print('abcd')
if n==5:
  print('aaaaa')
  print('aaaab')
  print('aaabc')
  print('aabcd')
  print('abcde')
if n==6:
  print('aaaaaa')
  print('aaaaab')
  print('aaaabc')
  print('aaabcd')
  print('aabcde')
  print('abcdef')
if n==7:
  print('aaaaaaa')
  print('aaaaaab')
  print('aaaaabc')
  print('aaaabcd')
  print('aaabcde')
  print('aabcdef')
  print('abcdefg')
if n==8:
  print('aaaaaaaa')
  print('aaaaaaab')
  print('aaaaaabc')
  print('aaaaabcd')
  print('aaaabcde')
  print('aaabcdef')
  print('aabcdefg')
  print('abcdefgh')
if n==9:
  print('aaaaaaaaa')
  print('aaaaaaaab')
  print('aaaaaaabc')
  print('aaaaaabcd')
  print('aaaaabcde')
  print('aaaabcdef')
  print('aaabcdefg')
  print('aabcdefgh')
  print('abcdefghi')
if n==10:
  print('aaaaaaaaaa')
  print('aaaaaaaaab')
  print('aaaaaaaabc')
  print('aaaaaaabcd')
  print('aaaaaabcde')
  print('aaaaabcdef')
  print('aaaabcdefg')
  print('aaabcdefgh')
  print('aabcdefghi')
  print('abcdefghij')