q=["AE","B","C","D"] for i in range(int(input())): q[(i+1)%4]+=q[i%4][0] q[i%4]=q[i%4][1] for i in range(4): print(q[i])