f = input() K = int(f.split()[0]) q = [['A','E'],['B'],['C'],['D']] for i in range(K): j = i % 4 q[(j+1)%4].append(q[i][0]) del q[i][0] for i in range(4): for j in range(len(q[i])): print(q[i][j],end="") print()