import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); ArrayList> queues = new ArrayList<>(); for (int i = 0; i < 4; i++) { queues.add(new ArrayDeque<>()); } queues.get(0).add('A'); queues.get(0).add('E'); queues.get(1).add('B'); queues.get(2).add('C'); queues.get(3).add('D'); for (int i = 0; i < n; i++) { queues.get((i + 1) % 4).add(queues.get(i % 4).poll()); } StringBuilder sb = new StringBuilder(); for (ArrayDeque q : queues) { while (q.size() > 0) { sb.append(q.poll()); } sb.append("\n"); } System.out.print(sb); } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public double nextDouble() throws Exception { return Double.parseDouble(next()); } public String next() throws Exception { if (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }