from collections import defaultdict import random n = int(input()) al = [chr(i) for i in range(97, 97+26)] d = defaultdict(bool) for i in range(n-1): ok = False while not ok: ans = "" for g in range(6): rnd = random.randint(0, len(al)-1) ans += al[rnd] if not d[ans]: print("a"+ ans +"a") d[ans] = True ok = True print("an")