#include using namespace std; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; int main() { vector> D(4); D[0].push_back('A'); D[0].push_back('E'); D[1].push_back('B'); D[2].push_back('C'); D[3].push_back('D'); ll K; cin>>K; rep(i,K){ char C=D[i].front(); D[i].pop_front(); D[(i+1)%4].push_back(C); } rep(i,4){ while(!D[i].empty()){ char C=D[i].front(); D[i].pop_front(); cout<