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.InputStreamReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.Comparator;
import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.InputStream;

public class Main {
	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		InputReader in = new InputReader(inputStream);
		PrintWriter out = new PrintWriter(outputStream);
		Task solver = new Task();
		solver.solve(1, in, out);
		out.close();
	}
}

class Task {

	int n,m,k,x;
	int S1[];
	int S2[];
	
	static class Unit {
		public long a,b,c;
		public int st,en;
		public Unit(long a,long b,long c,int st,int en) {
			this.a=a;
			this.b=b;
			this.c=c;
			this.st=st;
			this.en=en;
		}
		public Unit() {}
	}
	
	public boolean get(int s1,int e1,int s2,int e2)
	{
		if(n==1&&s1!=e1) return false;
		if(m==1&&s2!=e2) return false;
		Unit F1 = new Unit(1,0,0,s1,e1);
		Unit F2 = new Unit(0,1,0,s2,e2);
		for(int i=3;i<=k;i++)
		{
			Unit F3 = new Unit();
			F3.a=F1.a+F2.a;
			F3.b=F1.b+F2.b;
			F3.c=F1.c+F2.c;
			if(F1.en==0&&F2.st==1) F3.c++;
			F3.st=F1.st; 
			F3.en=F2.en;
			F1=F2; F2=F3;
		}
		long z=x-F2.c; 
		if(z<0) return false;
		for(long i=0;i<n;i++) {
			long j=z-i*F2.a;
			if(j%F2.b!=0) continue;
			j/=F2.b;
			if(jud(s1,e1,s2,e2,i,j)!=0) return true;
		}
		return false;
	}
	
	public int jud(int s1,int e1,int s2,int e2,long a,long b) {
		
		if(n==1&&a!=0) return 0;
		if(m==1&&b!=0) return 0;
		if(n==2&&s1==0&&e1==1) a--;
		if(m==2&&s2==0&&e2==1) b--;
		if(a<0||b<0) return 0;
		S1 = new int[n];
		S2 = new int[m];
		Arrays.fill(S1, -1);
		Arrays.fill(S2, -1);
		S1[0]=s1; S1[n-1]=e1;
		S2[0]=s2; S2[m-1]=e2;
		for(int i=1;i<n-1&&a!=0;i++) {
			if(S1[i-1]==0) {
				S1[i]=1; a--;
			}
			else S1[i]=0;
		}
		if(n>2&&S1[n-2]==0&&S1[n-1]==1) {
			if(a==0) S1[n-2]=-1;
			else a--;
		}
		for(int i=1;i<m-1&&b!=0;i++) {
			if(S2[i-1]==0) {
				S2[i]=1; b--;
			}
			else S2[i]=0;
		}
		if(m>2&&S2[m-2]==0&&S2[m-1]==1) {
			if(b==0) S2[m-2]=-1;
			else b--;
		}
		if(a!=0||b!=0) return 0;
		return 1;
	}
	
    public void solve(int testNumber, InputReader in, PrintWriter out) {
    	
    	k=in.nextInt();
    	x=in.nextInt();
    	n=in.nextInt();
    	m=in.nextInt();
    	for(int s1=0;s1<=2;s1++)
    		for(int e1=0;e1<=2;e1++)
    			for(int s2=0;s2<=2;s2++)
    				for(int e2=0;e2<=2;e2++) if(get(s1,e1,s2,e2)==true) {
    					for(int i=0;i<n;i++) {
    						if(S1[i]==0) out.print("A");
    						else if(S1[i]==1) out.print("C");
    						else out.print("B");
    					}
    					out.println();
    					for(int i=0;i<m;i++) {
    						if(S2[i]==0) out.print("A");
    						else if(S2[i]==1) out.print("C");
    						else out.print("B");
    					}
    					out.println();
    					return ;
    				}
    	out.print("Happy new year!");
    }
}

class InputReader {
    public BufferedReader reader;
    public StringTokenizer tokenizer;

    public InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream));
        tokenizer = null;
    }

    public String next() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            try {
                tokenizer = new StringTokenizer(reader.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return tokenizer.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(next());
    }
}