Problem: Many countries have such a New Year or Christmas tradition as writing a letter to Santa including a wish list for presents. Vasya is an ordinary programmer boy. Like all ordinary boys, he is going to write the letter to Santa on the New Year Eve (we Russians actually expect Santa for the New Year, not for Christmas). 

Vasya has come up with an algorithm he will follow while writing a letter. First he chooses two strings, s1 anf s2, consisting of uppercase English letters. Then the boy makes string sk, using a recurrent equation sn = sn - 2 + sn - 1, operation '+' means a concatenation (that is, the sequential record) of strings in the given order. Then Vasya writes down string sk on a piece of paper, puts it in the envelope and sends in to Santa. 

Vasya is absolutely sure that Santa will bring him the best present if the resulting string sk has exactly x occurrences of substring AC (the short-cut reminds him оf accepted problems). Besides, Vasya decided that string s1 should have length n, and string s2 should have length m. Vasya hasn't decided anything else.

At the moment Vasya's got urgent New Year business, so he asks you to choose two strings for him, s1 and s2 in the required manner. Help Vasya.

Input

The first line contains four integers k, x, n, m (3 ≤ k ≤ 50; 0 ≤ x ≤ 109; 1 ≤ n, m ≤ 100).

Output

In the first line print string s1, consisting of n uppercase English letters. In the second line print string s2, consisting of m uppercase English letters. If there are multiple valid strings, print any of them.

If the required pair of strings doesn't exist, print "Happy new year!" without the quotes.

Examples

Input

3 2 2 2


Output

AC
AC


Input

3 3 2 2


Output

Happy new year!


Input

3 0 2 2


Output

AA
AA


Input

4 3 2 1


Output

Happy new year!


Input

4 2 2 1


Output

Happy new year!

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;

public class cf2013D {
    public static void main(String[] args) throws Exception {
    	// BufferedReader in = new BufferedReader(new FileReader("cf2013D.in"));
    	BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    	
		String[] arr = in.readLine().split(" ");
		
		int k = Integer.parseInt(arr[0]);
		int x = Integer.parseInt(arr[1]);
		int n = Integer.parseInt(arr[2]);
		int m = Integer.parseInt(arr[3]);
		for(int i = 0; i < 9; i++) {
			char s1 = (char) (65 + i % 3);
			char e1 = (char) (65 + i / 3);
			if(n == 1) {
				e1 = s1;
			}
			int minocc1 = (n == 2 && s1 == 'A' && e1 == 'C') ? 1 : 0;
			int maxocc1 = minocc1;
			if(n % 2 == 0) {
				if(s1 == 'A' && e1 == 'C') {
					maxocc1 = n / 2;
				} else {
					maxocc1 = n / 2 - 1;
				}
			} else {
				if(s1 == 'A' || e1 == 'C') {
					maxocc1 = n / 2;
				} else {
					maxocc1 = n / 2 - 1;
				}
			}
			maxocc1 = Math.max(maxocc1, 0);
			for(int j = 0; j < 9; j++) {
				char s2 = (char) (65 + j % 3);
				char e2 = (char) (65 + j / 3);
				if(m == 1) {
					e2 = s2;
				}
				int minocc2 = (m == 2 && s2 == 'A' && e2 == 'C') ? 1 : 0;
				int maxocc2 = minocc2;
				if(m % 2 == 0) {
					if(s2 == 'A' && e2 == 'C') {
						maxocc2 = m / 2;
					} else {
						maxocc2 = m / 2 - 1;
					}
				} else {
					if(s2 == 'A' || e2 == 'C') {
						maxocc2 = m / 2;
					} else {
						maxocc2 = m / 2 - 1;
					}
				}
				maxocc2 = Math.max(maxocc2, 0);
				for(int l = minocc1; l <= maxocc1; l++) {
					for(int o = minocc2; o <= maxocc2; o++) {
						long len1 = l;
						long len2 = o;
						for(int p = 0; p < k - 2; p++) {
							long len3 = len1 + len2;
							if(p == 0) {
								if(e1 == 'A' && s2 == 'C') {
									len3++;
								}
							} else {
								if(p % 2 == 1) {
									if(e2 == 'A' && s1 == 'C') {
										len3++;
									}
								} else {
									if(e2 == 'A' && s2 == 'C') {
										len3++;
									}
								}
							}
							len1 = len2;
							len2 = len3;
							// System.out.println(len2);
						}
						if(len2 == x) {
							stuff(n, l, minocc1, maxocc1, s1, e1);
							stuff(m, o, minocc2, maxocc2, s2, e2);
							return;
						}
					}
				}
			}
		}
		System.out.println("Happy new year!");
	}

	public static void stuff(int n, int l, int minocc1, int maxocc1, char s1, char e1) {
		if(n % 2 == 0) {
			if(l == minocc1) {
				System.out.print(s1);
				for(int q = 0; q < n - 2; q++) {
					System.out.print("B");
				}
				System.out.println(e1);
			} else {
				if(l == maxocc1) {
					if(s1 == 'A' && e1 == 'C') {
						for(int q = 0; q < n / 2; q++) {
							System.out.print("AC");
						}
						System.out.println();
					} else {
						System.out.print(s1);
						for(int q = 0; q < n / 2 - 1; q++) {
							System.out.print("AC");
						}
						System.out.println(e1);
					}
				} else {
					System.out.print(s1);
					for(int q = 0; q < l; q++) {
						System.out.print("AC");
					}
					for(int q = l; q < n / 2 - 1; q++) {
						System.out.print("BB");
					}
					System.out.println(e1);
				}
			}
		} else {
			if(n == 1) {
				System.out.println(s1);
				return;
			}
			if(l == minocc1) {
				System.out.print(s1);
				for(int q = 0; q < n - 2; q++) {
					System.out.print("B");
				}
				System.out.println(e1);
			} else {
				if(l == maxocc1) {
					if(s1 == 'A') {
						System.out.print(s1);
						System.out.print("C");
						for(int q = 0; q < (n - 3) / 2; q++) {
							System.out.print("AC");
						}
						System.out.println(e1);
						return;
					}
					if(e1 == 'C') {
						System.out.print(s1);
						for(int q = 0; q < (n - 3) / 2; q++) {
							System.out.print("AC");
						}
						System.out.print('A');
						System.out.println(e1);
						return;
					}
					System.out.print(s1);
					System.out.print("A");
					for(int q = 0; q < (n - 3) / 2; q++) {
						System.out.print("CA");
					}
					System.out.println(e1);
					return;
				} else {
					System.out.print(s1);
					for(int q = 0; q < l; q++) {
						System.out.print("AC");
					}
					for(int q = 0; q < n - 2 * l - 2; q++) {
						System.out.print("B");
					}
					System.out.println(e1);
				}
			}
		}
	}
}