n = int(input()) for i in range(n - 1): lst = ["a"] while i: lst.append(chr(97 + i % 26)) i //= 26 lst.append("a") print(*lst, sep="") print("an")