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

public class cf379d {
	public static void main(String args[]) throws Exception {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] s = in.readLine().split("\\s+");
		int k = Integer.parseInt(s[0]);
		int x = Integer.parseInt(s[1]);
		int n = Integer.parseInt(s[2]);
		int m = Integer.parseInt(s[3]);

//		int[] t = new int[k+1];

//		StringBuilder s1 = new StringBuilder();
//		StringBuilder s2 = new StringBuilder();

		for(char b1 = 'A'; b1 <= 'C'; b1++) {// += 2) {
			for(char e1 = 'A'; e1 <= 'C'; e1++){// += 2) {
				for(char b2 = 'A'; b2 <= 'C'; b2++){// += 2) {
					for(char e2 = 'A'; e2 <= 'C'; e2++){// += 2) {
						if(n == 1 && b1 != e1) continue;
						if(m == 1 && b2 != e2) continue;

						// completed
						// do calculations
						
						// beginning and ends
						char[] b = new char[k + 1];
						char[] e = new char[k + 1];
						b[1] = b1;
						b[2] = b2;
						e[1] = e1;
						e[2] = e2;

						for(int i = 3; i <= k; i++) {
							b[i] = b[i-2];
							e[i] = e[i-1];
						}

						// calculated AC's made connecting
						long[] t = new long[k+1];
						t[1] = 0;
						t[2] = 0;
						for(int i = 3; i <= k; i++) {
							t[i] = t[i-2] + t[i-1];
							if(e[i-2] == 'A' && b[i-1] == 'C') t[i]++;
						}

						// how many made without the connecting ACs
						long tx = x - t[k];

						// create "best fit" string
						// work out combinations
						for(int i = 0; i <= tx && i <= n/2; i++) {
							for(int j =  0; j <= tx - i && j <= m/2; j++) {

							t[1] = i;
							t[2] = j;

							for(int z = 3; z <= k; z++) {
								t[z] = t[z-2] + t[z-1];
							}

							if(t[k] == tx) {

								StringBuilder s1 = new StringBuilder();
								StringBuilder s2 = new StringBuilder();

								for(int z = 0; z < n; z++) s1.append('Z');
								for(int z = 0; z < m; z++) s2.append('Z');
								s1.setCharAt(0, b1);
								s2.setCharAt(0, b2);
								s1.setCharAt(s1.length()-1, e1);
								s2.setCharAt(s2.length()-1, e2);

								int ti = 0;
								int tj = 0;

								for(int z = 1; z < n; z++) {
									if(ti < i) {
										if(s1.charAt(z-1) == 'A' && s1.charAt(z) == 'Z') {
											s1.setCharAt(z, 'C');
											ti++;
										}
										else if(s1.charAt(z-1) == 'Z' && s1.charAt(z) == 'Z') {
											s1.setCharAt(z-1, 'A');
											s1.setCharAt(z, 'C');
											ti++;
										}
										else if(s1.charAt(z-1) == 'Z' && s1.charAt(z) == 'C') {
											s1.setCharAt(z-1, 'A');
											ti++;
										}
										else if(s1.charAt(z-1) == 'A' && s1.charAt(z) == 'C') ti++;
									}
								}
								for(int z = 1; z < m; z++) {
									if(tj < j) {
										if(s2.charAt(z-1) == 'A' && s2.charAt(z) == 'Z') {
											s2.setCharAt(z, 'C');
											tj++;
										}
										else if(s2.charAt(z-1) == 'Z' && s2.charAt(z) == 'Z') {
											s2.setCharAt(z-1, 'A');
											s2.setCharAt(z, 'C');
											tj++;
										}
										else if(s2.charAt(z-1) == 'Z' && s2.charAt(z) == 'C') {
											s2.setCharAt(z-1, 'A');
											tj++;
										}
										else if(s2.charAt(z-1) == 'A'&& s2.charAt(z) == 'C') tj++;
									}
								}


								if(ti == i && tj == j) {
									System.out.println(s1);
									System.out.println(s2);
									return;
								}
							}
						}
						}
					}
				}
			}
		}

		System.out.println("Happy new year!");
	}
}