#include #define REP(i,n) for(int i=0,i##_len=int(n);i q[4]; q[0].push('A');q[0].push('E'); q[1].push('B'); q[2].push('C'); q[3].push('D'); int k;cin>>k; REP(i,k) { std::queue& from = q[i%4]; std::queue& to = q[(i+1)%4]; char c = from.front();from.pop(); to.push(c); } REP(i,4) { while(q[i].size()) { cout << q[i].front(); q[i].pop(); } cout<