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

public class D implements Runnable {

    private static final char[] CHARSET = {'A', 'B', 'C'};

    private void solve() throws Exception {
        int n = nextInt();
        int target = nextInt();
        int len1 = nextInt();
        int len2 = nextInt();

        long[] fun = new long[n + 1];
        fun[0] = 1;
        fun[1] = 1;
        for (int i = 1; i < n / 2; i++) {
            fun[2 * i] = fun[2 * i - 1] + fun[2 * i - 2] + 1;
            fun[2 * i + 1] = fun[2 * i - 1] + fun[2 * i];
        }
        long[] fib = new long[n];
        fib[1] = 1;
        for (int i = 2; i < n; i++) {
            fib[i] = fib[i - 1] + fib[i - 2];
        }

        for (char x : CHARSET) {
            for (char yy : CHARSET) {
                char y = len1 == 1 ? x : yy;
                int minPairs1 = minPairs(len1, x, y);
                int maxPairs1 = maxPairs(len1, x, y);
                for (char p : CHARSET) {
                    for (char qq : CHARSET) {
                        char q = len2 == 1 ? p : qq;
                        int minPairs2 = minPairs(len2, p, q);
                        int maxPairs2 = maxPairs(len2, p, q);

                        for (int pairs1 = minPairs1; pairs1 <= maxPairs1; pairs1++) {
                            for (int pairs2 = minPairs2; pairs2 <= maxPairs2; pairs2++) {
                                long res = 0;
                                if (ac(y, p)) {
                                    res += fib[n - 2];
                                }
                                if (ac(q, x) && n >= 4) {
                                    res += fun[n - 4];
                                }
                                if (ac(q, p) && n >= 5) {
                                    res += fun[n - 5];
                                }
                                long[] fibXY = new long[n];
                                fibXY[0] = pairs1;
                                fibXY[1] = pairs2;
                                for (int i = 2; i < n; i++) {
                                    fibXY[i] = fibXY[i - 1] + fibXY[i - 2];
                                }
                                res += fibXY[n - 1];

                                if (res == target) {
                                    out.println(gen(x, y, len1, pairs1));
                                    out.println(gen(p, q, len2, pairs2));
                                    return;
                                }
                            }
                        }

                    }
                }
            }
        }

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

    private String gen(char first, char last, int length, int pairs) {
        char[] res = new char[length];
        Arrays.fill(res, 'B');
        res[0] = first;
        res[res.length - 1] = last;
        int pos = first == 'A' ? 0 : 1;
        for (int i = 0; i < pairs; i++) {
            res[pos++] = 'A';
            res[pos++] = 'C';
        }
        return new String(res);
    }

    private boolean ac(char a, char c) {
        return a == 'A' && c == 'C';
    }

    private int maxPairs(int length, char first, char last) {
        if (first != 'A') {
            length--;
        }
        if (last != 'C') {
            length--;
        }
        return Math.max(0, length / 2);
    }

    private int minPairs(int length, char first, char last) {
        if (length == 2 && ac(first, last)) {
            return 1;
        }
        return 0;
    }

    private BufferedReader in;
    private StringTokenizer tokenizer = new StringTokenizer("");
    private PrintWriter out;

    private String nextToken() throws IOException {
        while (!tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(in.readLine());
        }
        return tokenizer.nextToken();
    }

    private int nextInt() throws IOException {
        return Integer.parseInt(nextToken());
    }

    private long nextLong() throws IOException {
        return Long.parseLong(nextToken());
    }

    @Override
    public void run() {
        try (BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
             PrintWriter out = new PrintWriter(System.out))
        {
            this.in = in;
            this.out = out;
            solve();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        new Thread(new D()).start();
    }
}