import itertools n = int(input()) iter = itertools.product(list('abcdefg'), repeat=7) for _ in range(n-1): print('a' + str(iter.next()) + 'a') print('an')