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.util.*;
import java.io.*;
import java.math.BigInteger;

public class A {
	FastScanner in;
	PrintWriter out;

	String[] can(long x, long c1, long c2, long m1, long m2) {
		long n1 = m1 / 2, n2 = m2 / 2;
		for (long i = 0; i <= n1; i++) {
			long y = x - i * c1;
			if (y >= 0 && y % c2 == 0) {
				long z = y / c2;
				if (z <= n2) {
					StringBuffer s = new StringBuffer(), t = new StringBuffer();
					for (int j = 0; j < i; j++) s.append("AC");
					for (int j = 0; j < z; j++) t.append("AC");
					while (s.length() < m1) s.append("D");
					while (t.length() < m2) t.append("D");
					
					return new String[]{s.toString(), t.toString()};
				}
			}
		}
		return null;
	}
	
	public void solve() throws IOException {
		int k = in.nextInt(), x = in.nextInt(), n = in.nextInt(), m = in.nextInt();
		long[] count1 = new long[k + 1];
		long[] count2 = new long[k + 1];
		count1[1] = 1;
		count2[2] = 1;
		long[] count21 = new long[k + 1];
		long[] count22 = new long[k + 1];
		long[] count12 = new long[k + 1];
		for (int i = 3; i <= k; i++) {
			count1[i] = count1[i - 1] + count1[i - 2];
			count2[i] = count2[i - 1] + count2[i - 2];
			count21[i] = count21[i - 1] + count21[i - 2];
			count22[i] = count22[i - 1] + count22[i - 2];
			count12[i] = count12[i - 1] + count12[i - 2];
			if (i % 2 == 0) {
				count21[i]++;
			} else {
				if (i == 3) count12[i]++;
				else count22[i]++;
			}
		}
		long c1 = count1[k], c2 = count2[k];
		long c21 = count21[k], c22 = count22[k], c12 = count12[k];
		// s2 = C....A
		if (m >= 2) {
			if (x - c22 >= 0) {
				// s1 = (A/D).....(C/D)
				{
					String[] s = can(x - c22, c1, c2, n, m - 2);
					if (s != null) {
					   out.println(s[0]);
					   out.println("C" + s[1] + "A");
					   return;
					}
				}
				// s1 = (A/D).....A
				if (x - c22 - c12 >= 0) {
					String[] s = can(x - c22 - c12, c1, c2, n - 1, m - 2);
					if (s != null) {
					   out.println(s[0] + "A");
					   out.println("C" + s[1] + "A");
					   return;
					}
				}
				// s1 = C....(C/D)
				if (x - c22 - c21 >= 0) {
					String[] s = can(x - c22 - c21, c1, c2, n - 1, m - 2);
					if (s != null) {
					   out.println("C" + s[0]);
					   out.println("C" + s[1] + "A");
					   return;
					}
				}
				// s1 = C....A
				if (x - c22 - c21 - c12 >= 0) {
					String[] s = can(x - c22 - c21 - c12, c1, c2, n - 2, m - 2);
					if (s != null) {
					   out.println("C" + s[0] + "A");
					   out.println("C" + s[1] + "A");
					   return;
					}
				}
			}
		}
		// s2 = (A/D)....A
		{
			// s1 = C......
			if (x - c21 >= 0) {
				String[] s = can(x - c21, c1, c2, n - 1, m - 1);
				if (s != null) {
				   out.println("C" + s[0]);
				   out.println(s[1] + "A");
				   return;
				}
			}
			// s1 = (A/D).....
			String[] s = can(x, c1, c2, n, m - 1);
			if (s != null) {
			   out.println(s[0]);
			   out.println(s[1] + "A");
			   return;
			}
		}
		{
			// s2 = (A/D)....(C/D)
			String[] s = can(x, c1, c2, n, m);
			if (s != null) {
			   out.println(s[0]);
			   out.println(s[1]);
			   return;
			}
		}
		// s2 = C....(C/D)
		{
			// s1 = .....A
			if (x - c12 >= 0) {
				String[] s = can(x - c12, c1, c2, n - 1, m - 1);
				if (s != null) {
				   out.println(s[0] + "A");
				   out.println("C" + s[1]);
				   return;
				}
			}
		}
		{
			// s1 = .....(C/D)
			String[] s = can(x, c1, c2, n, m - 1);
			if (s != null) {
			   out.println(s[0]);
			   out.println("C" + s[1]);
			   return;
			}
		}
		
	
		out.println("Happy new year!");
	}

	public void run() {
		try {
			in = new FastScanner(new File("object.in"));
			out = new PrintWriter(System.out);

			solve();
			
			out.close();

		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		FastScanner(File f) {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}
	}

	public static void main(String[] arg) {
		new A().run();
	}
}