import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); String[] q = {"AE","B","C","D"}; for( int i = 0; i < K; i++ ) { String h = q[i%4].substring(0,1); String t = q[i%4].substring(1,2); q[i%4] = t; q[(i+1)%4] += h; } for( String s : q ) { System.out.println(s); } } }