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 D {

    BufferedReader br;
    PrintWriter out;
    StringTokenizer st;
    boolean eof;
    
    String check(int len, int ac, char first, char last) {
        if (len == 1) {
            if (first != last)
                return null;
            else
                return "" + first;
        }
        if (len == 2) {
            int haveAc = (first == 'A' && last == 'C') ? 1 : 0;
            if (haveAc == ac) {
                return "" + first + last;
            } else {
                return null;
            }
        }
        
        char[] buff = new char[len];
        int st;
        buff[0] = first;
        if (first == 'A')
            st = 0;
        else {
            st = 1;
        }
        if (st + 2 * ac > len) {
            return null;
        }
        if (st + 2 * ac - 1 == len - 1 && last != 'C')
            return null;
        for (int i = 0; i < ac; i++) {
            buff[st + 2 * i] = 'A';
            buff[st + 2 * i + 1] = 'C';
        }
        for (int i = st + 2 * ac; i < len - 1; i++) {
            buff[i] = 'B';
        }
        buff[len - 1] = last;
        return new String(buff);
        
    }

    boolean check(int len0, int ac0, char first0, char last0, int len1, int ac1,
            char first1, char last1) {
        String ans0 = check(len0, ac0, first0, last0);
        String ans1 = check(len1, ac1, first1, last1);
        if (ans0 != null && ans1 != null) {
            out.println(ans0);
            out.println(ans1);
            return true;
        }
        return false;
    }

    void solve() throws IOException {
        int k = nextInt();
        int x = nextInt();
        int len0 = nextInt();
        int len1 = nextInt();

        int[] ac = new int[k];
        char[] first = new char[k];
        char[] last = new char[k];

        for (int ac0 = 0; ac0 <= len0 / 2; ac0++)
            for (int ac1 = 0; ac1 <= len1 / 2; ac1++) {
                for (char first0 = 'A'; first0 <= 'C'; first0++)
                    for (char last0 = 'A'; last0 <= 'C'; last0++)
                        for (char first1 = 'A'; first1 <= 'C'; first1++)
                            for (char last1 = 'A'; last1 <= 'C'; last1++) {
                                ac[0] = ac0;
                                ac[1] = ac1;
                                first[0] = first0;
                                first[1] = first1;
                                last[0] = last0;
                                last[1] = last1;

                                for (int i = 2; i < k; i++) {
                                    ac[i] = Math.min(ac[i - 1] + ac[i - 2],
                                            x + 1);
                                    if (last[i - 2] == 'A'
                                            && first[i - 1] == 'C') {
                                        ac[i] = Math.min(ac[i] + 1, x + 1);
                                    }
                                    first[i] = first[i - 2];
                                    last[i] = last[i - 1];
                                }

                                if (ac[k - 1] == x) {
                                    if (check(len0, ac0, first0, last0, len1,
                                            ac1, first1, last1)) {
                                        return;
                                    }
                                }
                            }
            }
        out.println("Happy new year!");
    }

    D() throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        solve();
        out.close();
    }

    public static void main(String[] args) throws IOException {
        new D();
    }

    String nextToken() {
        while (st == null || !st.hasMoreTokens()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
                eof = true;
                return null;
            }
        }
        return st.nextToken();
    }

    String nextString() {
        try {
            return br.readLine();
        } catch (IOException e) {
            eof = true;
            return null;
        }
    }

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

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

    double nextDouble() throws IOException {
        return Double.parseDouble(nextToken());
    }
}