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