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[j][0]) del q[j][0] for i in range(4): for j in range(len(q[i])): print(q[i][j],end="") print()