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.*;

import org.xml.sax.InputSource;

import static java.lang.Math.*;

public class Solution implements Runnable {
	
	private long go (int k, int la, int ra, int lb, int rb, long a, long b, int x) {
		for (int i = 2; i < k; i++) {
			int lc = la;
			int rc = rb;
			long c = a + b + ((ra == 0 && lb == 2) ? 1 : 0);
			if (c > x)
				return c;
			la = lb;
			ra = rb;
			a = b;
			lb = lc;
			rb = rc;
			b = c;
		}
		return b;
	}
	
	private boolean can (int n, int l, int r, int need) {
		if (n == 1) {
			return need == 0;
		}
		if (n == 2) {
			if (l == 0 && r == 2) {
				return need == 1;
			}
			return need == 0;
		}
		if (need == n / 2) {
			if (n % 2 == 0) {
				return l == 0 && r == 2;
			} else {
				return l == 0 || r == 2;
			}
		}
		return true;
	}
	
	private String recover (int n, int l, int r, int need) {
		char c [] = new char [n];
		c[0] = (char)('A' + l);
		c[n - 1] = (char)('A' + r);
		for (int i = 1; i < n - 1; i++) {
			c[i] = 'B';
		}
		if (n == 2) {
			if (l == 0 && r == 2) {
				need--;
			}
		}
		for (int i = 1; i < n - 1 && need > 0; i++) {
			if (c[i - 1] == 'A') {
				c[i] = 'C';
				need--;
			} else if (c[i + 1] == 'C') {
				c[i] = 'A';
				need--;
			} else {
				c[i] = 'A';
			}
		}
		return new String(c);
	}
	
	private boolean validate (String a, int need) {
		int result = 0;
		for (int i = 0; i < a.length() - 1; i++) {
			if (a.charAt(i) == 'A' && a.charAt(i + 1) == 'C') {
				result++;
			}
		}
		return result == need;
	}
	
	public void solve() throws Exception {
		int k = sc.nextInt();
		int x = sc.nextInt();
		int n = sc.nextInt();
		int m = sc.nextInt();
		
		for (int la = 0; la < 3; la++) {
			for (int ra = 0; ra < 3; ra++) {
				if (n == 1)
					ra = la;
				for (int lb = 0; lb < 3; lb++) {
					for (int rb = 0; rb < 3; rb++) {
						if (m == 1)
							rb = lb;
						for (int a = 0; a <= n / 2; a++) {
							for (int b = 0; b <= m / 2; b++) {
								if (can (n, la, ra, a) && can (m, lb, rb, b)) {
									long result = go(k, la, ra, lb, rb, a, b, x);
									if (result == x) {
										String s1 = recover(n, la, ra, a);
										String s2 = recover(m, lb, rb, b);
										out.println(s1);
										out.println(s2);
										return;
									}
								}
							}
						}
						if (m == 1)
							break;
					}
				}
				if (n == 1)
					break;
			}
		}
		
		out.println("Happy new year!");
	}


	static Throwable t;

	BufferedReader in;
	FastScanner sc;
	PrintWriter out;

	@Override
	public void run() {
		try {
			in = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintWriter(System.out);
			sc = new FastScanner(in);
			solve();
		} catch (Throwable t) {
			Solution.t = t;
		} finally {
			out.close();
		}
	}

	public static void main(String[] args) throws Throwable {
		Thread thread = new Thread(null, new Solution(), "", 1 << 26);
		thread.start();
		thread.join();
		if (Solution.t != null)
			throw t;
	}

}

class FastScanner {

	BufferedReader in;
	StringTokenizer st;

	public FastScanner(BufferedReader in) {
		this.in = in;
	}

	public String nextToken() throws Exception {
		while (st == null || !st.hasMoreTokens())
			st = new StringTokenizer(in.readLine());
		return st.nextToken();
	}

	public int nextInt() throws Exception {
		return Integer.parseInt(nextToken());
	}

	public long nextLong() throws Exception {
		return Long.parseLong(nextToken());
	}

	public double nextDouble() throws Exception {
		return Double.parseDouble(nextToken());
	}

}