n = int(input())
if n == 1:
    print('a')
elif n == 2:
    print('aa')
    print('ab')
elif n == 3:
    print('aaa')
    print('aba')
    print('abb')
elif n == 4:
    print('aaaa')
    print('abaa')
    print('abba')
    print('abbb')
elif n == 5:
    print('aaaaa')
    print('abaaa')
    print('abbaa')
    print('abbba')
    print('abbbb')
elif n == 6:
    print('aaaaaa')
    print('abaaaa')
    print('abbaaa')
    print('abbbaa')
    print('abbbba')
    print('abbbbb')
elif n == 7:
    print('aaaaaaa')
    print('abaaaaa')
    print('abbaaaa')
    print('abbbaaa')
    print('abbbbaa')
    print('abbbbba')
    print('abbbbbb')
elif n == 8:
    print('aaaaaaaa')
    print('abaaaaaa')
    print('abbaaaaa')
    print('abbbaaaa')
    print('abbbbaaa')
    print('abbbbbaa')
    print('abbbbbba')
    print('abbbbbbb')
elif n == 9:
    print('aaaaaaaaa')
    print('abaaaaaaa')
    print('abbaaaaaa')
    print('abbbaaaaa')
    print('abbbbaaaa')
    print('abbbbbaaa')
    print('abbbbbbaa')
    print('abbbbbbba')
    print('abbbbbbbb')
else:
    print('aaaaaaaaaa')
    print('abaaaaaaaa')
    print('abbaaaaaaa')
    print('abbbaaaaaa')
    print('abbbbaaaaa')
    print('abbbbbaaaa')
    print('abbbbbbaaa')
    print('abbbbbbbaa')
    print('abbbbbbbba')
    print('abbbbbbbbb')