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.Scanner;
import java.io.OutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		Scanner in = new Scanner(inputStream);
		PrintWriter out = new PrintWriter(outputStream);
		TaskD solver = new TaskD();
		solver.solve(1, in, out);
		out.close();
	}
}

class TaskD {
    public void solve(int testNumber, Scanner in, PrintWriter out) {
        int k=in.nextInt();
        int x=in.nextInt();
        int n=in.nextInt();
        int m=in.nextInt();
        for (int s1beginwithc = 0; s1beginwithc < 2; s1beginwithc++) {
            for (int s1endwitha = 0; s1endwitha < 2; s1endwitha++) {
                for (int s2beginwithc = 0; s2beginwithc < 2; s2beginwithc++) {
                    for (int s2endwitha = 0; s2endwitha < 2; s2endwitha++) {
                        long[] beginwithc=new long[k];
                        beginwithc[0]=s1beginwithc;
                        beginwithc[1]=s2beginwithc;
                        long[] endwitha=new long[k];
                        endwitha[0]=s1endwitha;
                        endwitha[1]=s2endwitha;
                        long[] rest=new long[k];
                        long[] s1cnt=new long[k];
                        long[] s2cnt=new long[k];
                        s1cnt[0]=1;
                        s2cnt[1]=1;
                        for (int i = 2; i < k; i++) {
                            beginwithc[i]=beginwithc[i-2];
                            endwitha[i]=endwitha[i-1];
                            rest[i]=rest[i-1]+rest[i-2];
                            if (endwitha[i-2]==1&&beginwithc[i-1]==1) rest[i]++;
                            s1cnt[i]=s1cnt[i-1]+s1cnt[i-2];
                            s2cnt[i]=s2cnt[i-1]+s2cnt[i-2];
                        }
                        long s1most=n-s1beginwithc-s1endwitha;
                        long s2most=m-s2beginwithc-s2endwitha;
                        long s1ac=-1;
                        long s2ac=-1;
                        for (int i = 0; 2*i <= s1most ; i++) {
                            long now=s1cnt[k-1]*i+rest[k-1];
                            if (now<=x&&(x-now)%s2cnt[k-1]==0){
//                                s1ac=i;
                                long t=(x-now)/s2cnt[k-1];
                                if (t*2 <= s2most){
                                    s2ac=t;
                                    s1ac=i;
                                }
                            }
                        }
                        if (s1ac!=-1&&s2ac!=-1){
                            if (s1beginwithc==1) out.print('C');
                            for (int i = 0; i < s1ac; i++) {
                                out.print("AC");
                            }
                            for (int i = 0; i < s1most - s1ac * 2; i++) {
                                out.print("D");
                            }
                            if (s1endwitha==1) out.print('A');
                            out.println();

                            if (s2beginwithc==1) out.print("C");
                            for (int i = 0; i < s2ac; i++) {
                                out.print("AC");
                            }
                            for (int i = 0; i < s2most - s2ac * 2; i++) {
                                out.print("D");
                            }
                            if (s2endwitha==1) out.print('A');
                            return;
                        }

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