N = int(input()) for i in range(N): a = i s = 'a' while a >= 0: s += chr(a%26 + 97) a = a//26 -1 print(s + 'n' if i == N - 1 else s + 'a')