#yuki1764 q=[['A','E'],['B'],['C'],['D']] k=int(input()) for i in range(k): q[(i+1)%4].append(q[i%4].pop(0)) for x in q: print(''.join(x))