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