from collections import deque queue = [deque() for _ in range(4)] queue[0].append("A") queue[1].append("B") queue[2].append("C") queue[3].append("D") queue[0].append("E") k = int(input()) for i in range(k): queue[(i + 1) % 4].append(queue[i % 4].popleft()) for i in range(4): print(*queue[i], sep="")