n = int(input())-1 s = set() L = "abcdefghij" for x in range(n): print("a" + "".join(L[int(i)] for i in str(x+1000000)) + "a") print("an")