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 Main {
	static BufferedReader reader;
	static StringTokenizer tokenizer;
	static PrintWriter writer;

	static int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}

	static long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}

	static double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}

	static String nextToken() throws IOException {
		while (tokenizer == null || !tokenizer.hasMoreTokens()) {
			tokenizer = new StringTokenizer(reader.readLine());
		}
		return tokenizer.nextToken();
	}

	public static void main(String[] args) throws IOException {
		tokenizer = null;
		reader = new BufferedReader(new InputStreamReader(System.in));
		writer = new PrintWriter(System.out);
		banana();
		reader.close();
		writer.close();
	}

	static ArrayList<Integer> al;

	static void f(int t) {
		if (t == 1) {
			al.add(1);
			return;
		}
		if (t == 2) {
			al.add(2);
			return;
		}
		f(t - 2);
		f(t - 1);
	}

	static void banana() throws IOException {
		long[] fib = new long[52];
		fib[2] = 1;
		fib[3] = 1;
		for (int i = 4; i < 52; i++) {
			fib[i] = fib[i - 1] + fib[i - 2];
		}
		long[] s1 = new long[52];
		long[] s2 = new long[52];
		long[] s1s2 = new long[52];
		long[] s2s1 = new long[52];
		long[] s1s1 = new long[52];
		long[] s2s2 = new long[52];
		for (int i = 2; i <= 50; i++) {
			s1[i] = fib[i - 1];
			s2[i] = fib[i];
			s1s2[i] = fib[i - 1];
			s2s1[i] = fib[i - 1] - i % 2;
			s1s1[i] = 0;
			s2s2[i] = fib[i - 2] - (1 - i % 2);
		}

		int k = nextInt();
		long x = nextLong();
		int n = nextInt();
		int m = nextInt();

		String[] beg = { "B", "C", "" };
		String[] en = { "A", "B", "" };
		for (int b1 = 0; b1 < beg.length; b1++) {
			for (int e1 = 0; e1 < en.length; e1++) {
				for (int mid1 = 0; mid1 < 50; mid1++) {
					int left = n - beg[b1].length() - en[e1].length() - mid1
							* 2;
					if (left < 0)
						continue;
					StringBuilder sbmid = new StringBuilder();
					for (int t = 0; t < mid1; t++) {
						sbmid.append("AC");
					}
					for (int t = 0; t < left; t++) {
						sbmid.append("B");
					}
					String str1 = beg[b1] + sbmid.toString() + en[e1];

					for (int b2 = 0; b2 < beg.length; b2++) {
						for (int e2 = 0; e2 < en.length; e2++) {
							for (int mid2 = 0; mid2 < 50; mid2++) {
								int left2 = m - beg[b2].length()
										- en[e2].length() - mid2 * 2;
								if (left2 < 0)
									continue;
								StringBuilder sbmid2 = new StringBuilder();
								for (int t = 0; t < mid2; t++) {
									sbmid2.append("AC");
								}
								for (int t = 0; t < left2; t++) {
									sbmid2.append("B");
								}
								String str2 = beg[b2] + sbmid2.toString()
										+ en[e2];

								// here we go str1 str2
								long count = 0;

								count += s1[k] * mid1;

								count += s2[k] * mid2;

								if (str1.charAt(n - 1) == 'A'
										&& str1.charAt(0) == 'C') {
									count += s1s1[k];
								}

								if (str1.charAt(n - 1) == 'A'
										&& str2.charAt(0) == 'C') {
									count += s1s2[k];
								}

								if (str2.charAt(m - 1) == 'A'
										&& str1.charAt(0) == 'C') {
									count += s2s1[k];
								}

								if (str2.charAt(m - 1) == 'A'
										&& str2.charAt(0) == 'C') {
									count += s2s2[k];
								}
								if (count == x) {
									writer.println(str1);
									writer.println(str2);
									return;
								}
							}
						}
					}
				}
			}
		}
		writer.println("Happy new year!");
	}
}