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.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.StringTokenizer;


public class D {

    static StringTokenizer st;
    static BufferedReader br;
    static PrintWriter pw;
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
        int k = nextInt();
        int x = nextInt();
        int n = nextInt();
        int m = nextInt();
        int[]fib = new int[k+1];
        boolean[]begin = new boolean[k+1], end = new boolean[k+1];
        for (int k1 = 0; k1*2 <= n; k1++) {
            for (int k2 = 0; k2*2 <= m; k2++) {
                for (int t1 = 0; t1 < 4; t1++) {
                    for (int t2 = 0; t2 < 4; t2++) {
                        int s1 = 0;
                        if (t1==3)
                            s1 = 2;
                        else if (t1==1 || t1==2)
                            s1 = 1;
                        int s2 = 0;
                        if (t2==3)
                            s2 = 2;
                        else if (t2==1 || t2==2)
                            s2 = 1;
                        if (s1+2*k1 <= n && s2+2*k2 <= m) {
                            fib[1] = k1;
                            fib[2] = k2;
                            if (t1==0) {
                                begin[1] = false;
                                end[1] = false;
                            }
                            if (t1==1) {
                                begin[1] = true;
                                end[1] = false;
                            }
                            if (t1==2) {
                                begin[1] = false;
                                end[1] = true;
                            }
                            if (t1==3) {
                                begin[1] = true;
                                end[1] = true;
                            }
                            if (t2==0) {
                                begin[2] = false;
                                end[2] = false;
                            }
                            if (t2==1) {
                                begin[2] = true;
                                end[2] = false;
                            }
                            if (t2==2) {
                                begin[2] = false;
                                end[2] = true;
                            }
                            if (t2==3) {
                                begin[2] = true;
                                end[2] = true;
                            }
                            boolean f = true;
                            for (int i = 3; i <= k; i++) {
                                fib[i] = fib[i-1]+fib[i-2];
                                if (end[i-2] && begin[i-1])
                                    fib[i]++;
                                begin[i] = begin[i-2];
                                end[i] = end[i-1];
                                if (fib[i] > x)
                                    f = false;
                            }
                            if (!f)
                                continue;
                            if (fib[k]==x) {
                                int leng = 0;
                                if (begin[1]) {
                                    pw.print("C");
                                    leng = 1;
                                }
                                for (int i = 1; i <= k1; i++) {
                                    pw.print("AC");
                                    leng += 2;
                                }
                                if (end[1])
                                    leng++;
                                for (int i = 1; i <= n-leng; i++) {
                                    pw.print("X");
                                }
                                if (end[1])
                                    pw.print("A");
                                pw.println();
                                leng = 0;
                                if (begin[2]) {
                                    pw.print("C");
                                    leng = 1;
                                }
                                for (int i = 1; i <= k2; i++) {
                                    pw.print("AC");
                                    leng += 2;
                                }
                                if (end[2])
                                    leng++;
                                for (int i = 1; i <= m-leng; i++) {
                                    pw.print("X");
                                }
                                if (end[2])
                                    pw.print("A");
                                pw.println();
                                pw.close();
                                return;
                            }
                        }
                    }
                }
            }
        }
        System.out.println("Happy new year!");
        pw.close();
    }
    private static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    private static long nextLong() throws IOException {
        return Long.parseLong(next());
    }
    private static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
    private static String next() throws IOException {
        while (st==null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine());
        return st.nextToken();
    }
}