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

public class NewYearLetter {
	public static int[][] check(int x, int[] arr, int msk, int s1, int s2) {
		for (int i = 0; i < 3; i++)
			if ((msk & (1 << i)) != 0)
				x -= arr[i + 2];

		int[] FormS1 = new int[3];// start with c, end with a, contains AC;
		int[] FormS2 = new int[3];
		if ((msk & (1 << 1)) != 0 || (msk & (1 << 2)) != 0) {
			s2--;
			FormS2[1] = 1;
		}
		if ((msk & (1 << 0)) != 0) {
			s1--;
			FormS1[1] = 1;
		}
		if ((msk & (1 << 0)) != 0 || (msk & (1 << 2)) != 0) {
			s2--;
			FormS2[0] = 1;
		}
		if ((msk & (1 << 1)) != 0) {
			s1--;
			FormS1[0] = 1;
		}
		if (x < 0 || s1 < 0 || s2 < 0)
			return null;
		if (((msk & (1 << 3)) != 0))
			if (((msk & (1 << 4)) != 0)) {
				for (int i = 0; i <= x / arr[5]; i++)
					if ((x - i * arr[5]) % arr[6] == 0 && s1 >= i * 2 && s2 >= ((x - i * arr[5]) / arr[6]) * 2) {
						FormS1[2] = i;
						FormS2[2] = (x - i * arr[5]) / arr[6];
						x = 0;
						break;
					}
			} else if (x % arr[5] == 0 && x / arr[5] * 2 <= s1) {
				FormS1[2] = x / arr[5];
				x %= arr[5];
			} else
				return null;
		else if ((msk & (1 << 4)) != 0)
			if (x % arr[6] == 0 && x / arr[6] * 2 <= s2) {
				FormS2[2] = x / arr[6];
				x %= arr[6];
			} else
				return null;
		if (x != 0)
			return null;
		else {
			return new int[][] { FormS1, FormS2 };
		}

	}

	public static StringBuilder generate(int[] S, int s) {
		StringBuilder ss1 = new StringBuilder();
		if (S[0] == 1)
			ss1.append("C");
		for (int j = 0; j < S[2]; j++)
			ss1.append("AC");
		for (int j = 0; j < s - S[0] - S[1] - 2 * S[2]; j++)
			ss1.append("R");
		if (S[1] == 1)
			ss1.append("A");
		return ss1;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int s1 = sc.nextInt();
		int s2 = sc.nextInt();
		int[] Sn2 = { 1, 1, 0, 0, 0, 1, 0 };// start,end, s1+s2, s2+s1, s2+s2,
											// s1 occ, s2 occ
		int[] Sn1 = { 2, 2, 0, 0, 0, 0, 1 };
		for (int i = 3; i <= k; i++) {
			int[] Sn = new int[7];
			for (int j = 0; j < 7; j++)
				Sn[j] = j == 0 ? Sn2[0] : j == 1 ? Sn1[1] : (Sn2[j] + Sn1[j]);
			if (Sn2[1] == 2)
				if (Sn1[0] == 1)
					Sn[3]++;
				else
					Sn[4]++;
			else
				Sn[2]++;
			Sn2 = Sn1;
			Sn1 = Sn;
		}
		for (int i = 0; i < (1 << 5); i++) {
			int[][] arr = check(x, Sn1, i, s1, s2);
			if (arr != null) {
				StringBuilder ss1 = generate(arr[0], s1);
				StringBuilder ss2 = generate(arr[1], s2);
				System.out.println(ss1.toString());
				System.out.println(ss2.toString());
				return;
			}
		}
		System.out.println("Happy new year!");

	}
}