n = int(input())
if n == 1:
    print('a')
elif n == 2:
    print('aa')
    print('ab')
elif n == 3:
    print('aaa')
    print('aab')
    print('abb')
elif n == 4:
    print('aaaa')
    print('aaab')
    print('aabb')
    print('abbb')
elif n == 5:
    print('aaaaa')
    print('aaaab')
    print('aaabb')
    print('aabbb')
    print('abbbb')
elif n == 6:
    print('aaaaaa')
    print('aaaaab')
    print('aaaabb')
    print('aaabbb')
    print('aabbbb')
    print('abbbbb')
elif n == 7:
    print('aaaaaaa')
    print('aaaaaab')
    print('aaaaabb')
    print('aaaabbb')
    print('aaabbbb')
    print('aabbbbb')
    print('abbbbbb')
elif n == 8:
    print('aaaaaaaa')
    print('aaaaaaab')
    print('aaaaaabb')
    print('aaaaabbb')
    print('aaaabbbb')
    print('aaabbbbb')
    print('aabbbbbb')
    print('abbbbbbb')
elif n == 9:
    print('aaaaaaaaa')
    print('aaaaaaaab')
    print('aaaaaaabb')
    print('aaaaaabbb')
    print('aaaaabbbb')
    print('aaaabbbbb')
    print('aaabbbbbb')
    print('aabbbbbbb')
    print('abbbbbbbb')
else:
    print('aaaaaaaaaa')
    print('aaaaaaaaab')
    print('aaaaaaaabb')
    print('aaaaaaabbb')
    print('aaaaaabbbb')
    print('aaaaabbbbb')
    print('aaaabbbbbb')
    print('aaabbbbbbb')
    print('aabbbbbbbb')
    print('abbbbbbbbb')