N = int(input()) for i in range(N-1): tmp = 'a' for c in str(i): tmp += chr(int(c) + ord('a')) tmp += 'a' print(tmp) print('an')