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.*;
import java.io.*;

public class Main{

    BufferedReader in;
    StringTokenizer str = null;
    PrintWriter out;

    private String next() throws Exception{
    	if (str == null || !str.hasMoreElements())
    	    str = new StringTokenizer(in.readLine());
    	return str.nextToken();
    }
    
    private int nextInt() throws Exception{
	   return Integer.parseInt(next());
    }
    
    int k, X;
    
    char ALP[] = new char[]{'A', 'C', 'D'};
    
    public void run() throws Exception{
    	in = new BufferedReader(new InputStreamReader(System.in));
    	out = new PrintWriter(System.out);
	
	k = nextInt();
	X = nextInt();
	int n = nextInt(), m = nextInt();
	
	for(int i=0;i<=n/2;i++){
	    for(int j=0;j<=m/2;j++){
		for(int s1=0;s1<3;s1++){
		    for(int s2=0;s2<3;s2++){
			for(int f1=0;f1<3;f1++){
			    for(int f2=0;f2<3;f2++){
				if (dp(s1, s2, f1, f2, i, j, n, m)){
				    print(s1, f1, i, n);
				    print(s2, f2, j, m);
				    out.close();
				    return;
				}
			    }
			}
		    }
		}
	    }
	}
	
	out.println("Happy new year!");
        out.close();	
    }
    
    private boolean dp(int s1, int s2, int f1, int f2, int a, int b, int n, int m){
	
	if (!ok(s1, f1, a, n)) return false;
	if (!ok(s2, f2, b, m)) return false;
	
	Info d1 = new Info(s1, f1, a);
	Info d2 = new Info(s2, f2, b);
	for(int i=0;i<k-2;i++){
	    Info d3 = new Info(d1.s, d2.f, d1.x + d2.x);
	    if (d1.f == 0 && d2.s == 1) d3.x++;
	    
	    d1 = new Info(d2);
	    d2 = new Info(d3);
	    
	    //if (d2.x == X) return true;
	    if (d2.x > X) return false;
	}
	if (d2.x == X) return true;
	return false;
    }
    
    private boolean ok(int s, int f, int a, int n){
	if (n == 1){
	    if (s != f) return false;
	    return true;
	}
	if (n == 2){
	    if (a == 0){
		if (s == 0 && f == 1)
		    return false;
		return true;
	    }
	    
	    if (a == 1){
		if (s == 0 && f == 1)
		    return true;
		return false;
	    }
	}
	if (n / 2 == a){
	    if (n % 2 == 0){
		if (s == 0 && f == 1)
		    return true;
		return false;
	    }
	    return s == 0 || f == 1;
	}
	
	return true;
    }
    
    private void print(int s, int f, int a, int n){
	if (s == 0){
	    if (a == 0){
		out.print(ALP[s]);
		for(int i=0;i<n-2;i++)
		    out.print("D");
		if (n > 1)
		    out.print(ALP[f]);
	    }else{
		for(int i=0;i<a;i++)
		    out.print("AC");
		for(int i=0;i<n-2*a-1;i++)
		    out.print("D");
		if (n > 2 * a)
		    out.print(ALP[f]);
	    }
	    out.println();
	    return;
	}
	
	if (f == 1){
	    if (a == 0){
		out.print(ALP[s]);
		for(int i=0;i<n-2;i++)
		    out.print("D");
		if (n > 1)
		    out.print(ALP[f]);
	    }else{
		if (n > 2 * a)
		    out.print(ALP[s]);
		for(int i=0;i<n-2*a-1;i++)
		    out.print("D");
		for(int i=0;i<a;i++)
		    out.print("AC");
	    }
	    out.println();
	    return;
	}
	
	out.print(ALP[s]);
	for(int i=0;i<a;i++)
	    out.print("AC");
	for(int i=0;i<n-2*a-2;i++)
	    out.print("D");
	if (n > 1)
	    out.print(ALP[f]);
	out.println();
    }
    
    static class Info{
	int s, f;
	long x;
	
	public Info(int s, int f, long x){
	    this.s = s;
	    this.f = f;
	    this.x = x;
	}
	
	public Info(Info i){
	    this.s = i.s;
	    this.f = i.f;
	    this.x = i.x;
	}
    }

    public static void main(String args[]) throws Exception{
	   new Main().run();
    }
}