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

import static java.lang.Double.parseDouble;
import static java.lang.Integer.MAX_VALUE;
import static java.lang.Integer.bitCount;
import static java.lang.Integer.parseInt;
import static java.lang.Long.parseLong;

public class Main {
    public static void main(String[] args) throws IOException {
        Solver sv = new Solver();
        sv.solve();
    }
}

class Solver {
    BufferedReader in;
    StringTokenizer tok;

    public void solve() throws IOException {
        in = new BufferedReader(new InputStreamReader(System.in));

        int k = nextInt();
        int x = nextInt();
        int n = nextInt();
        int m = nextInt();

        // 1. s1
        // 2. s2
        // 3. s1|s2              12
        // 4. s2|s1s2            21
        // 5. s1s2|s2s1s2        22
        // 6. s2s1s2|s1s2s2s1s2  21
        // 7. s1..s2   s2|s2     22
        // 8. s2..s2   s2|s1     21
        // 9. s1..s2   s2|s2     22

        char[] mas = {'A', 'C', 'B'};
        for(int i = 0; i <= n / 2; ++i) {
            for(int j = 0; j <= m / 2; ++j) {
                for(char f1 : mas) {
                    for(char e1 : mas) {
                        for(char f2 : mas) {
                            for(char e2 : mas) {
                                if (n == 1 && f1 != e1 || m == 1 && f2 != e2) {
                                    continue;
                                }
                                if (n != 1) {
                                    if (i == n / 2 && n % 2 == 0) {
                                        if (f1 != 'A' || e1 != 'C') {
                                            continue;
                                        }
                                    }
                                    if (i == n / 2 && n % 2 == 1) {
                                        if (f1 != 'A' && e1 != 'C') {
                                            continue;
                                        }
                                    }
                                }
                                if (m != 1) {
                                    if (j == m / 2 && m % 2 == 0) {
                                        if (f2 != 'A' || e2 != 'C') {
                                            continue;
                                        }
                                    }
                                    if (j == m / 2 && m % 2 == 1) {
                                        if (f2 != 'A' && e2 != 'C') {
                                            continue;
                                        }
                                    }
                                }
                                if (n == 2 && i == 0 && f1 == 'A' && e1 == 'C') {
                                    continue;
                                }
                                if (m == 2 && j == 0 && f2 == 'A' && e2 == 'C') {
                                    continue;
                                }
                                long cnt = calc(i, j, f1, e1, f2, e2, k);
                                if (cnt == x) {
                                    print(i, n, f1, e1);
                                    print(j, m, f2, e2);
                                    return;
                                }
                            }
                        }
                    }
                }
            }
        }
        System.out.println("Happy new year!");
    }

    void print(int c, int n, char f, char e) {
        if (c == n / 2) {
            if (n % 2 == 0) {
                for(int i = 0; i < c; ++i) {
                    System.out.print("AC");
                }
                System.out.println();
            } else {
                if (f != 'A') {
                    System.out.print(f);
                    for(int i = 0; i < c; ++i) {
                        System.out.print("AC");
                    }
                    System.out.println();
                } else {
                    for(int i = 0; i < c; ++i) {
                        System.out.print("AC");
                    }
                    System.out.println(e);
                }
            }
        } else {
            System.out.print(f);
            for(int i = 0; i < c; ++i) {
                System.out.print("AC");
            }
            for(int i = 0; i < n - 2 * c - 2; ++i) {
                System.out.print('B');
            }
            System.out.println(e);
        }
    }

    long calc(int a, int b, char f1, char e1, char f2, char e2, int k) {
        long[] dp = new long [k + 1];
        dp[1] = a;
        dp[2] = b;
        dp[3] = a + b + ((e1 == 'A' && f2 == 'C' ? 1 : 0));
        for(int i = 4; i <= k; ++i) {
            dp[i] = dp[i - 2] + dp[i - 1];
            if (i % 2 == 0 && e2 == 'A' && f1 == 'C') {
                ++dp[i];
            }
            if (i % 2 == 1 && e2 == 'A' && f2 == 'C') {
                ++dp[i];
            }
        }
        return dp[k];
    }

    String next() throws IOException {
        if (tok == null || !tok.hasMoreTokens()) {
            tok = new StringTokenizer(in.readLine());
        }
        return tok.nextToken();
    }

    int nextInt() throws IOException {
        return parseInt(next());
    }

    long nextLong() throws IOException {
        return parseLong(next());
    }

    double nextDouble() throws IOException {
        return parseDouble(next());
    }
}