n = int(input())
if n==1:
    print('a')
elif n==2:
    print('aa')
    print('ab')
elif n==3:
    print('aaa')
    print('aab')
    print('aba')
elif n==4:
    print('aaaa')
    print('aaab')
    print('aaba')
    print('aabb')
elif n==5:
    print('aaaaa')
    print('aaaab')
    print('aaaba')
    print('aaabb')
    print('aabaa')
elif n==6:
    print('aaaaaa')
    print('aaaaab')
    print('aaaaba')
    print('aaaabb')
    print('aaabaa')
    print('aaabab')
elif n==7:
    print('aaaaaaa')
    print('aaaaaab')
    print('aaaaaba')
    print('aaaaabb')
    print('aaaabaa')
    print('aaaabab')
    print('aaaabba')
elif n==8:
    print('aaaaaaaa')
    print('aaaaaaab')
    print('aaaaaaba')
    print('aaaaaabb')
    print('aaaaabaa')
    print('aaaaabab')
    print('aaaaabba')
    print('aaaaabbb')
elif n==9:
    print('aaaaaaaaa')
    print('aaaaaaaab')
    print('aaaaaaaba')
    print('aaaaaaabb')
    print('aaaaaabaa')
    print('aaaaaabab')
    print('aaaaaabba')
    print('aaaaaabbb')
    print('aaaaabaaa')
elif n==10:
    print('aaaaaaaaaa')
    print('aaaaaaaaab')
    print('aaaaaaaaba')
    print('aaaaaaaabb')
    print('aaaaaaabaa')
    print('aaaaaaabab')
    print('aaaaaaabba')
    print('aaaaaaabbb')
    print('aaaaaabaab')
    print('aaaaaababa')
    

