x = [["A","E"],["B"],["C"],["D"]] k = int(input()) for i in range(k): a = x[i%4].pop(0) x[(i+1)%4].append(a) for i in range(4): print(*x[i],sep="")