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

/*
───────────────■■■─────────────────────────
──█▄─▄█─▄▀▀▀▄─█──▄█─────█──▄▀─▄▀▀▀▄─▀▀█▀▀──
──█─▀─█─█───█─█─█─█─────█■█───█───█───█────
──█───█─▀▄▄▄▀─█▀──█─────█──▀▄─▀▄▄▄▀───█────
───────────────────────────────────────────
*/

public class Main {

    static FastReader in;
    static PrintWriter out;
    static Random rand = new Random();
    static final int INF = (int) (1e9);
    static final int MOD = (int) (1e9 + 7);
    static final int N = (int) (1e6 + 6);
    static int k, x, n, m;
    static long[] cnt, A, C;

    static boolean isMask(int mask, int i) {
        return (mask & (1 << i)) != 0;
    }

    static void solve() {
        k = in.nextInt();
        x = in.nextInt();
        n = in.nextInt();
        m = in.nextInt();

        cnt = new long[k + 1];
        A = new long[k + 1];
        C = new long[k + 1];

        for (int mask = 0; mask < 16; mask++) {
            Arrays.fill(cnt, 0);
            Arrays.fill(A, 0);
            Arrays.fill(C, 0);

            int n1 = n, m1 = m;
            if (isMask(mask, 0)) {
                n1--;
                C[1] = 1;
            }
            if (isMask(mask, 1)) {
                n1--;
                A[1] = 1;
            }
            if (isMask(mask, 2)) {
                m1--;
                C[2] = 1;
            }
            if (isMask(mask, 3)) {
                m1--;
                A[2] = 1;
            }

            for (int i = 0; i * 2 <= n1; i++) {
                for (int j = 0; j * 2 <= m1; j++) {
                    cnt[1] = i;
                    cnt[2] = j;
                    for (int k1 = 3; k1 <= k; k1++) {
                        cnt[k1] = cnt[k1 - 2] + cnt[k1 - 1] + A[k1 - 2] * C[k1 - 1];
                        C[k1] = C[k1 - 2];
                        A[k1] = A[k1 - 1];
                    }
                    if (cnt[k] == x) {
                        StringBuilder s1 = new StringBuilder();
                        if (C[1] == 1) {
                            s1.append("C");
                        }
                        for (int i1 = 0; i1 < i; i1++) {
                            s1.append("AC");
                        }
                        while (s1.length() - C[1] < n1) {
                            s1.append("B");
                        }
                        if (A[1] == 1) {
                            s1.append("A");
                        }
                        out.println(s1.toString());

                        StringBuilder s2 = new StringBuilder();
                        if (C[2] == 1) {
                            s2.append("C");
                        }
                        for (int j1 = 0; j1 < j; j1++) {
                            s2.append("AC");
                        }
                        while (s2.length() - C[2] < m1) {
                            s2.append("B");
                        }
                        if (A[2] == 1) {
                            s2.append("A");
                        }
                        out.println(s2.toString());

                        return;
                    }
                }
            }
        }

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

    public static void main(String[] args) throws FileNotFoundException {
        in = new FastReader(System.in);
//        in = new FastReader(new FileInputStream("input.txt"));
        out = new PrintWriter(System.out);
//        out = new PrintWriter(new FileOutputStream("output.txt"));


        int q = 1;

        while (q-- > 0) {
            solve();
        }

        out.close();
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        FastReader(InputStream is) {
            br = new BufferedReader(new InputStreamReader(is));
        }

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

        Long nextLong() {
            return Long.parseLong(next());
        }

        Double nextDouble() {
            return Double.parseDouble(next());
        }

        String next() {
            while (st == null || !st.hasMoreTokens()) {
                st = new StringTokenizer(nextLine());
            }
            return st.nextToken();
        }

        String nextLine() {
            String s = "";
            try {
                s = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return s;
        }
    }
}