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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


public class D {

	static class Scanner{
		BufferedReader br=null;
		StringTokenizer tk=null;
		public Scanner(){
			br=new BufferedReader(new InputStreamReader(System.in));
		}
		public String next() throws IOException{
			while(tk==null || !tk.hasMoreTokens())
				tk=new StringTokenizer(br.readLine());
			return tk.nextToken();
		}
		public int nextInt() throws NumberFormatException, IOException{
			return Integer.valueOf(next());
		}
		public double nextDouble() throws NumberFormatException, IOException{
			return Double.valueOf(next());
		}
	}
	
	static class Aux{
		long count;
		char S, E;
		public Aux(long c, char SS, char EE){
			count = c;
			S = SS;
			E = EE;
		}
	}
	
	static Aux func(Aux s1, Aux s2){
		Aux ret = new Aux(s1.count + s2.count, s1.S, s2.E);
		if (s1.E == 'A' && s2.S == 'C')
			ret.count++;
		return ret;
	}
	
	static boolean eval(Aux s1, Aux s2, int times, long aim){
		times -= 2;
		Aux s3 = null;
		for(int i = 0; i < times; i++){
			s3 = func(s1, s2);
			if (s3.count > aim)
				return false;
			s1 = new Aux(s2.count, s2.S, s2.E);
			s2 = new Aux(s3.count, s3.S, s3.E);
		}
		return (s3.count == aim);
	}
	
	
	static int K, X, N, M;
	static char[] ops = {'A', 'C', 'X'};
	
	
	static int limit(char S, char E, int tam){
		if (S != 'A')
			tam--;
		if (E != 'C')
			tam--;
		tam = Math.max(0, tam);
		return tam / 2;
	}
	
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		Scanner sc = new Scanner();
		K = sc.nextInt();
		X = sc.nextInt();
		N = sc.nextInt();
		M = sc.nextInt();
//		Aux s11 = new Aux(1, 'A', 'A');
//		Aux s22 = new Aux(1, 'C', 'C');
//		boolean tmpp = eval(s11, s22, K, X);
//		System.out.println(tmpp);
		boolean flag = false;
		for(char c1 : ops){
			for(char c22: ops){
				for(char c3 : ops){
					for(char c44: ops){
						if (flag)
							continue;
						char c2 = (N == 1)? c1 : c22;
						char c4 = (M == 1)? c3 : c44;
						int limit1 = limit(c1, c2, N);
						int limit2 = limit(c3, c4, M);
						for(int i = 0; i <= limit1 && !flag; i++){
							for(int j = 0; j <= limit2 && !flag; j++){
								Aux s1 = new Aux(i, c1, c2);
								Aux s2 = new Aux(j, c3, c4);
								boolean tmp = eval(s1, s2, K, X);
								if (tmp){
									flag = true;
									System.out.println(get(c1,c2,i,N));
									System.out.println(get(c3,c4,j,M));
								}
							}
						}
					}
				}
			}
		}
		if (!flag)
			System.out.println("Happy new year!");
	}
	
	static String get(char S, char E, int inside, int tam){
		char[] ret = new char[tam];
		int idx = 0;
		if (S != 'A'){
			ret[0] = S;
			idx++;
		}
		for(int i = 0; i < inside; i++){
			ret[idx++] = 'A';
			ret[idx++] = 'C';
		}
		while(idx < ret.length){
			ret[idx] = 'X';
			idx++;
		}
		ret[ret.length - 1] = E;
		StringBuilder sb = new StringBuilder();
		for(int i = 0; i < ret.length; i++)
			sb.append(ret[i]+"");
		return sb.toString();
	}
	
}