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 nyletter {
	static int[] se;
	static boolean done=false;
	static int n,m;
	
	public static void main(String[] args) throws IOException {		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer(br.readLine());
		int k=Integer.parseInt(st.nextToken());
		int x=Integer.parseInt(st.nextToken());
		n=Integer.parseInt(st.nextToken());
		m=Integer.parseInt(st.nextToken());
		long[] a1s=new long[k];
		long[] a2s=new long[k];
		long[] j12s=new long[k];
		long[] j21s=new long[k];
		long[] j22s=new long[k];
		a1s[0]=1L;
		a2s[1]=1L;
		j22s[0]=-1L;   // derp.
		j12s[0]=1;     // more derp.
		for(int i=2;i<k;i++){
			a1s[i]=a1s[i-1]+a1s[i-2];
			a2s[i]=a2s[i-1]+a2s[i-2];
			j12s[i]=j12s[i-1]+j12s[i-2];
			j21s[i]=j21s[i-1]+j21s[i-2]+(i%2==1?1:0);
			j22s[i]=j22s[i-1]+j22s[i-2]+(i%2==0?1:0);
		}
		
		se=new int[4];    // 012 for starts and ends of a1 and a2
		asdf:while(!done){
			
			//System.out.println("se "+se[0]+" "+se[1]+" "+se[2]+" "+se[3]);
			
			long numACs=0;
			if(se[1]==0 && se[2]==2)
				numACs+=j12s[k-1];
			if(se[0]==2 && se[3]==0)
				numACs+=j21s[k-1];
			if(se[2]==2 && se[3]==0)
				numACs+=j22s[k-1];
			if(numACs<=x){
				long needed=x-numACs;
				// try to make solutions
				for(int i=0;i<=maxACs(n,se[0],se[1]);i++){
					if(needed>=a1s[k-1]*i && (needed-a1s[k-1]*i)%a2s[k-1]==0 && (needed-a1s[k-1]*i)/a2s[k-1]<=maxACs(m,se[2],se[3])){
						if(!(i==0 && n==2 && se[0]==0 && se[1]==2) && !(needed==a1s[k-1]*i && m==2 && se[2]==0 && se[3]==2)){
							printstr(n,se[0],se[1],i);
							printstr(m,se[2],se[3],(int)((needed-a1s[k-1]*i)/a2s[k-1]));
							break asdf;
						}
					}
				}
			}
			inc();
		}
		
		//System.out.println("a1 "+a1s[k-1]+" ;a2 "+a2s[k-1]);
		//System.out.println("j12 "+j12s[k-1]+" ;j21 "+j21s[k-1]+" ;j22 "+j22s[k-1]);
		/*for(int i=0;i<3;i++){
			for(int j=0;j<3;j++){
				printstr(5,i,j,maxACs(5,i,j));
			}
		}*/
	}
	static void printstr(int l,int s,int e,int numACs){
		int[] ans=new int[l];
		ans[0]=s-1;
		ans[l-1]=e-1;
		if(s==0){
			for(int i=0;i<numACs;i++){
				ans[2*i]=-1;
				ans[2*i+1]=1;
			}
		} else {
			for(int i=0;i<numACs;i++){
				ans[2*i+1]=-1;
				ans[2*i+2]=1;
			}
		}
		for(int i=0;i<l;i++){
			if(ans[i]==-1)
				System.out.print("A");
			else if(ans[i]==1)
				System.out.print("C");
			else
				System.out.print("B");
		}
		System.out.println();
	}
	static void inc(){
		int t=0;
		while(t<4 && se[t]==2)
			t++;
		if(t==4){
			done=true;
			System.out.println("Happy new year!");
			return;
		}
		for(int i=0;i<t;i++)
			se[i]=0;
		se[t]++;
		if(n==1 && se[0]!=se[1] || m==1 && se[2]!=se[3])
			inc();
	}
	// min zero unless lse=202
	static int maxACs(int l,int s,int e){    // length, start, end; 012=ABC
		if(s==0 && e==2)
			return l/2;
		if(s==0 || e==2)
			return (l-1)/2;
		return Math.max(0,l/2-1);
	}
}