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