from collections import deque d = [deque() for _ in range(4)] d[0].append('A') d[0].append('E') d[1].append('B') d[2].append('C') d[3].append('D') for i in range(int(input())): d[(i + 1) % 4].append(d[i].popleft()) for i in range(4): print(''.join(d[i]))