#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); queue 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) { q[(i + 1) % 4].push(q[i % 4].front()); q[i % 4].pop(); } rep(i,4) { while(!q[i].empty()) { cout << q[i].front(); q[i].pop(); } cout << endl; } }