import sys #input = sys.stdin.readline #文字列につけてはダメ input = sys.stdin.buffer.readline #文字列につけてはダメ #sys.setrecursionlimit(1000000) #import bisect #import itertools #import random #from heapq import heapify, heappop, heappush #from collections import defaultdict from collections import deque #import copy def main(): N = int(input()) Q = [] Q.append('AE') Q.append('B') Q.append('C') Q.append('D') for i in range(N): old = Q[i%4] Q[i%4] = old[1:] p = old[0] Q[(i+1)%4] += p print(*Q,sep='\n') if __name__ == '__main__': main()