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 com.sun.media.sound.FFT;
import javafx.util.Pair;

import java.io.*;
import java.math.BigInteger;
import java.sql.Time;
import java.text.NumberFormat;
import java.util.*;
import java.util.regex.Matcher;

/**
 * Created by VIET ANH on 27/04/2015.
 */
public class test {

    private static int T;
    private static long oo=Long.MAX_VALUE;
    private static long base=1000000007;

    public static void main(String[] args) throws IOException {
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        int k=in.nextInt();
        int x=in.nextInt();
        int n=in.nextInt();
        int m = in.nextInt();
        for (int i = 0; i <= n/2; i++) {
            for (int j = 0; j < ((i * 2 < n) ? 2 : 1); j++) {
                for (int l = 0; l < ((i * 2 + j < n) ? 2 : 1); l++) {
                    for (int o = 0; o <= m / 2; o++) {
                        for (int p = 0; p < ((o * 2 < m) ? 2 : 1); p++) {
                            for (int q = 0; q < ((o * 2 + p < m) ? 2 : 1); q++) {
                                long num1=i;
                                long num2=o;
                                int p1=l,p2=j,n1=p,n2=q;
                                long fnum1=i;
                                long fnum2=o;
                                int fp1=l,fp2=j,fn1=p,fn2=q;
                                for (int r = 0; r < k - 2; r++) {
                                    long nnum=num1+num2+((p2==1&&n1==1)? 1:0);
                                    int nn1=p1,nn2=n2;
                                    num1=num2;
                                    p1=n1; p2=n2;
                                    num2=nnum;
                                    n1=nn1; n2=nn2;
                                }
                                if (num2==x) {
                                    out.println(make(fnum1,fp1,fp2,n));
                                    out.println(make(fnum2, fn1, fn2,m));
                                    out.close();
                                    return;
                                }
                            }
                        }
                    }
                }
            }
        }
        out.println("Happy new year!");
        out.close();
    }

    private static StringBuilder make(long a, int b, int c, int n) {
        StringBuilder res=new StringBuilder();
        if (b==1) res.append('C');
        for (int i = 0; i < a; i++) {
            res.append("AC");
        }
        for (int i = 0; i < n-a*2-b-c; i++) {
            res.append('B');
        }
        if (c==1) res.append('A');
        return res;
    }

}