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