n = int(input())
if n == 1:
    print('a')
if n == 2:
    print('aa')
    print('ab')
if n == 3:
    print('aaa')
    print('aab')
    print('aba')
if n == 4:
    print('aaaa')
    print('aaab')
    print('aaba')
    print('aabb')
if n == 5:
    print('aaaaa')
    print('aaaab')
    print('aaaba')
    print('aaabb')
    print('aabaa')