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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Queue;
import java.util.concurrent.ArrayBlockingQueue;

public class ProblemD {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter out = new PrintWriter(System.out);
		
		String[] kxnm = in.readLine().split(" ");
		int k = Integer.valueOf(kxnm[0]);
		long x = Integer.valueOf(kxnm[1]);
		int n = Integer.valueOf(kxnm[2]);
		int m = Integer.valueOf(kxnm[3]);
		for (int CA1 = 0 ; CA1 <= 3 ; CA1++) {
			for (int CA2 = 0 ; CA2 <= 3 ; CA2++) {
				for (int ac1 = 0 ; ac1 <= n ; ac1++) {
					int need1 = ac1 * 2 + (CA1 & 1) + (CA1 >> 1);
					if (need1 > n) {
						break;
					}
					for (int ac2 = 0 ; ac2 <= m ; ac2++) {
						int need2 = ac2 * 2 + (CA2 & 1) + (CA2 >> 1);
						if (need2 > m) {
							break;
						}
						if (solve(CA1, CA2, ac1, ac2, k, x)) {
							out.println(build(n, CA1 & 1, (CA1 >> 1) & 1, ac1));
							out.println(build(m, CA2 & 1, (CA2 >> 1) & 1, ac2));
							out.flush();
							return;
						}
					}
				}
			}
		}
		
		
		
		
		
		out.println("Happy new year!");
		out.flush();
	}
	
	private static boolean solve(int ca1, int ca2, int ac1, int ac2, int k, long x) {
		boolean p2c = (ca1 & 1) == 1;
		boolean p2a = (ca1 & 2) == 2;
		boolean p1c = (ca2 & 1) == 1;
		boolean p1a = (ca2 & 2) == 2;
		long p2ac = ac1;
		long p1ac = ac2;
		for (int i = 3 ; i <= k ; i++) {
			long tac = p2ac + p1ac + ((p2a && p1c) ? 1 : 0);
			boolean tc = p2c;
			boolean ta = p1a;
			if (tac > x) {
				return false;
			}
			p2c = p1c;
			p2a = p1a;
			p2ac = p1ac;
			p1c = tc;
			p1a = ta;
			p1ac = tac;
		}
		return (p1ac == x);
	}

	public static String build(int n, int headC, int tailA, int acs) {
		char[] str = new char[n];
		Arrays.fill(str, 'Z');
		if (headC >= 1) {
			str[0] = 'C';
		}
		if (tailA >= 1) {
			str[n-1] = 'A';
		}
		for (int x = headC ; x < acs * 2 ; x += 2) {
			str[x] = 'A';
			str[x+1] = 'C';
		}
		return String.valueOf(str);
	}
	
	public static void debug(Object... o) {
		System.err.println(Arrays.deepToString(o));
	}
	
}