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.Arrays;
import java.util.StringTokenizer;

public class D {

	final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;
	BufferedReader in;
	PrintWriter out;
	StringTokenizer tok = new StringTokenizer("");

	void solve() throws IOException {
		int k = readInt();
		int x = readInt();
		int n = readInt();
		int m = readInt();
		long[] prev = new long[5];
		long[] cur = new long[5];
		boolean lastCur = true;
		boolean firstCur = false;
		boolean lastPrev = true;
		boolean firstPrev = true;
		cur[0] = 1;
		cur[1] = 1;
		cur[2] = 1;
		cur[3] = 0;
		cur[4] = 0;

		prev[0] = 0;
		prev[1] = 1;
		for (int i = 4; i <= k; i++) {
			long[] temp = new long[5];
			for (int j = 0; j < 5; j++) {
				temp[j] = cur[j] + prev[j];
			}
			if (lastPrev && firstCur) {
				temp[4]++;
			}
			if (lastPrev && !firstCur) {
				temp[3]++;
			}
			boolean firstNext = firstPrev;
			boolean lastNext = lastCur;
			firstPrev = firstCur;
			lastPrev = lastCur;
			firstCur = firstNext;
			lastCur = lastNext;
			prev = cur;
			cur = temp;
		}

		if (checkAB(cur, n, m, x)) {
			return;
		}
		if (checkBB(cur, n, m, x)) {
			return;
		}
		if (checkBA(cur, n, m, x)) {
			return;
		}
		if (checkBBAB(cur, n, m, x)) {
			return;
		}
		if (checkBBBA(cur, n, m, x)) {
			return;
		}
		if (checkWithout(cur, n, m, x)) {
			return;
		}
		if(checkAll(cur, n, m, x)) {
			return;
		}
		out.print("Happy new year!");
	}

	boolean checkBB(long[] x, int n, int m, int z) {
		if (m < 2) {
			return false;
		}
		z -= x[4];
		if (z < 0) {
			return false;
		}
		m -= 2;
		long numA = x[0];
		long numB = x[1];
		for (int q = 0; q * 2 <= m; q++) {
			long l = numB * q;
			if ((z - l) % numA == 0 && 2 * (z - l) / numA <= n) {
				String a = "";
				String b = "";
				b += 'C';
				for (int i = 0; i < q; i++) {
					b += "AC";
				}
				for (int i = 2 * q; i < m; i++) {
					b += 'B';
				}
				b += 'A';
				for (int i = 0; i < (z - l) / numA; i++) {
					a += "AC";
				}
				for (long i = 2 * (z - l) / numA; i < n; i++) {
					a += "B";
				}
				out.println(a);
				out.println(b);
				return true;
			}
		}
		return false;
	}

	boolean checkAll(long[] x, int n, int m, int z) {
		if (m < 2 || n < 2) {
			return false;
		}
		z -= x[4];
		z -= x[3];
		z -= x[2];
		if (z < 0) {
			return false;
		}
		m -= 2;
		n -= 2;
		long numA = x[0];
		long numB = x[1];
		for (int q = 0; q * 2 <= m; q++) {
			long l = numB * q;
			if ((z - l) % numA == 0 && 2 * (z - l) / numA <= n) {
				String a = "";
				String b = "";
				b += 'C';
				for (int i = 0; i < q; i++) {
					b += "AC";
				}
				for (int i = 2 * q; i < m; i++) {
					b += 'B';
				}
				b += 'A';
				a += 'C';
				for (int i = 0; i < (z - l) / numA; i++) {
					a += "AC";
				}
				for (long i = 2 * (z - l) / numA; i < n; i++) {
					a += "B";
				}
				a += 'A';
				out.println(a);
				out.println(b);
				return true;
			}
		}
		return false;
	}

	boolean checkBBBA(long[] x, int n, int m, int z) {
		if (m < 2) {
			return false;
		}
		z -= x[4];
		z -= x[3];
		if (z < 0) {
			return false;
		}
		m -= 2;
		n -= 1;
		long numA = x[0];
		long numB = x[1];
		for (int q = 0; q * 2 <= m; q++) {
			long l = numB * q;
			if ((z - l) % numA == 0 && 2 * (z - l) / numA <= n) {
				String a = "";
				String b = "";
				b += 'C';
				for (int i = 0; i < q; i++) {
					b += "AC";
				}
				for (int i = 2 * q; i < m; i++) {
					b += 'B';
				}
				b += 'A';

				a += "C";
				for (int i = 0; i < (z - l) / numA; i++) {
					a += "AC";
				}
				for (long i = 2 * (z - l) / numA; i < n; i++) {
					a += "B";
				}
				out.println(a);
				out.println(b);
				return true;
			}
		}
		return false;
	}

	boolean checkBBAB(long[] x, int n, int m, int z) {
		if (m < 2) {
			return false;
		}
		z -= x[4];
		z -= x[2];
		if (z < 0) {
			return false;
		}
		m -= 2;
		n -= 1;
		long numA = x[0];
		long numB = x[1];
		for (int q = 0; q * 2 <= m; q++) {
			long l = numB * q;
			if ((z - l) % numA == 0 && 2 * (z - l) / numA <= n) {
				String a = "";
				String b = "";
				b += 'C';
				for (int i = 0; i < q; i++) {
					b += "AC";
				}
				for (int i = 2 * q; i < m; i++) {
					b += 'B';
				}
				b += 'A';

				for (int i = 0; i < (z - l) / numA; i++) {
					a += "AC";
				}
				for (long i = 2 * (z - l) / numA; i < n; i++) {
					a += "B";
				}
				a += "A";
				out.println(a);
				out.println(b);
				return true;
			}
		}
		return false;
	}

	boolean checkAB(long[] x, int n, int m, int z) {
		z -= x[2];
		if (z < 0) {
			return false;
		}
		m -= 1;
		n -= 1;
		long numA = x[0];
		long numB = x[1];
		for (int q = 0; q * 2 <= m; q++) {
			long l = numB * q;
			if ((z - l) % numA == 0 && 2 * (z - l) / numA <= n) {
				String a = "";
				String b = "";
				b += 'C';
				for (int i = 0; i < q; i++) {
					b += "AC";
				}
				for (int i = 2 * q; i < m; i++) {
					b += 'B';
				}

				for (int i = 0; i < (z - l) / numA; i++) {
					a += "AC";
				}
				for (long i = 2 * (z - l) / numA; i < n; i++) {
					a += "B";
				}
				a += "A";
				out.println(a);
				out.println(b);
				return true;
			}
		}
		return false;
	}

	boolean checkBA(long[] x, int n, int m, int z) {
		z -= x[3];
		if (z < 0) {
			return false;
		}
		m -= 1;
		n -= 1;
		long numA = x[0];
		long numB = x[1];
		for (int q = 0; q * 2 <= m; q++) {
			long l = numB * q;
			if ((z - l) % numA == 0 && 2 * (z - l) / numA <= n) {
				String a = "";
				String b = "";
				for (int i = 0; i < q; i++) {
					b += "AC";
				}
				for (int i = 2 * q; i < m; i++) {
					b += 'B';
				}
				b += 'A';

				a += 'C';
				for (int i = 0; i < (z - l) / numA; i++) {
					a += "AC";
				}
				for (long i = 2 * (z - l) / numA; i < n; i++) {
					a += "B";
				}
				out.println(a);
				out.println(b);
				return true;
			}
		}
		return false;
	}

	boolean checkWithout(long[] x, int n, int m, int z) {
		if (z < 0) {
			return false;
		}
		long numA = x[0];
		long numB = x[1];
		for (int q = 0; q * 2 <= m; q++) {
			long l = numB * q;
			if ((z - l) % numA == 0 && 2 * (z - l) / numA <= n) {
				String a = "";
				String b = "";
				for (int i = 0; i < q; i++) {
					b += "AC";
				}
				for (int i = 2 * q; i < m; i++) {
					b += 'B';
				}

				for (int i = 0; i < (z - l) / numA; i++) {
					a += "AC";
				}
				for (long i = 2 * (z - l) / numA; i < n; i++) {
					a += "B";
				}
				out.println(a);
				out.println(b);
				return true;
			}
		}
		return false;
	}


	void init() throws FileNotFoundException {
		if (ONLINE_JUDGE) {
			in = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintWriter(System.out);
		} else {
			in = new BufferedReader(new FileReader("input.txt"));
			out = new PrintWriter("output.txt");
		}
	}

	String readString() throws IOException {
		while (!tok.hasMoreTokens()) {
			tok = new StringTokenizer(in.readLine());
		}
		return tok.nextToken();
	}

	int readInt() throws IOException {
		return Integer.parseInt(readString());
	}

	long readLong() throws IOException {
		return Long.parseLong(readString());
	}

	double readDouble() throws IOException {
		return Double.parseDouble(readString());
	}

	int[] readArr(int n) throws IOException {
		int[] res = new int[n];
		for (int i = 0; i < n; i++) {
			res[i] = readInt();
		}
		return res;
	}

	long[] readArrL(int n) throws IOException {
		long[] res = new long[n];
		for (int i = 0; i < n; i++) {
			res[i] = readLong();
		}
		return res;
	}

	public static void main(String[] args) {
		new D().run();
	}

	public void run() {
		try {
			long t1 = System.currentTimeMillis();
			init();
			solve();
			out.close();
			long t2 = System.currentTimeMillis();
			System.err.println("Time = " + (t2 - t1));
		} catch (Exception e) {
			e.printStackTrace(System.err);
			System.exit(-1);
		}
	}
}