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

public class D {
	FastScanner in;
	PrintWriter out;

	class Word {
		char l, r;
		long ac;

		public Word(char l, char r, long ac) {
			super();
			this.l = l;
			this.r = r;
			this.ac = ac;
		}

		boolean can(int len) {
			if (len == 1) {
				return l == r && ac == 0;
			}
			if (len == 2) {
				int real = (l == 'A' && r == 'C') ? 1 : 0;
				return real == ac;
			} else {
				int real = len - 2;
				if (l == 'A') {
					real++;
				}
				if (r == 'C') {
					real++;
				}
				return ac <= real / 2;
			}
		}

		void print(int len) {
			if (l != 'A' || ac == 0) {
				out.print(l);
				len--;
			}
			for (int i = 0; i < ac; i++) {
				out.print("AC");
				len -= 2;
			}
			if (len > 0) {
				for (int i = 0; i < len - 1; i++) {
					out.print("B");
				}
				out.print(r);
			}
		}
	}

	public void solve() throws IOException {
		int k = in.nextInt();
		long x = in.nextLong();
		int n = in.nextInt();
		int m = in.nextInt();
		for (char l1 = 'A'; l1 <= 'C'; l1++) {
			for (char l2 = 'A'; l2 <= 'C'; l2++) {
				for (char r1 = 'A'; r1 <= 'C'; r1++) {
					for (char r2 = 'A'; r2 <= 'C'; r2++) {
						for (int i = 0; i <= n; i++) {
							for (int j = 0; j <= m; j++) {
								Word w1 = new Word(l1, r1, i);
								Word w2 = new Word(l2, r2, j);
								Word iw1 = w1, iw2 = w2;
								if (w1.can(n) && w2.can(m)) {
									for (int it = 3; it <= k; it++) {
										Word w3 = new Word(w1.l, w2.r,
												w1.ac + w2.ac + (w1.r == 'A' && w2.l == 'C' ? 1 : 0));
										w1 = w2;
										w2 = w3;
									}
									Word w = w2;
									if (w.ac == x) {
										iw1.print(n);
										out.println();
										iw2.print(m);
										return;
									}
								}
							}
						}
					}
				}
			}
		}
		out.println("Happy new year!");
	}

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

			solve();

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

	class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		FastScanner() {
			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());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}
	}

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