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

public class Codeforces {

    public static void main(String[] args) throws Exception{
        long[] FIB = new long[]{1, 1, 2, 3, 5, 8, 13, 21, 34,
                55, 89, 144, 233, 377, 610, 987, 1597, 2584,
                4181, 6765, 10946, 17711, 28657, 46368, 75025,
                121393, 196418, 317811, 514229, 832040, 1346269,
                2178309, 3524578, 5702887, 9227465, 14930352,
                24157817, 39088169, 63245986, 102334155, 165580141,
                267914296, 433494437, 701408733, 1134903170,
                1836311903, 2971215073L, 4807526976L, 7778742049L, 12586269025L};
        long[] _2 = {1, 2, 4, 7, 12, 20, 33, 54, 88, 143, 232, 376, 609, 986, 1596, 2583, 4180, 6764, 10945, 17710, 28656, 46367, 75024, 121392, 196417, 317810, 514228, 832039, 1346268, 2178308, 3524577, 5702886, 9227464, 14930351, 24157816, 39088168, 63245985, 102334154, 165580140, 267914295, 433494436, 701408732, 1134903169, 1836311902, 2971215072l, 4807526975l, 7778742048l, 12586269024l, 20365011073l, 32951280098l, };
        long[] _1 = {1, 1, 3, 4, 8, 12, 21, 33, 55, 88, 144, 232, 377, 609, 987, 1596, 2584, 4180, 6765, 10945, 17711, 28656, 46368, 75024, 121393, 196417, 317811, 514228, 832040, 1346268, 2178309, 3524577, 5702887, 9227464, 14930352, 24157816, 39088169, 63245985, 102334155, 165580140, 267914296, 433494436, 701408733, 1134903169, 1836311903, 2971215072l, 4807526976l, 7778742048l, 12586269025l, 20365011073l, };

        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        int x = sc.nextInt();
        int n = sc.nextInt();
        int m = sc.nextInt();

        long MAX1 = x / FIB[k - 3] + 1;
        long MAX2 = x / FIB[k - 2] + 1;
        for (int i = 0; i <= MAX1; i++) {
            for (int j = 0; j <= MAX2; j++) {
                long res = i * FIB[ k - 3] + j * FIB[k - 2];
                if(res > x)
                    continue;
                if(res == x){
                    if(n >= 2*i && m >= 2 * j){
                        System.out.println(getStr(n, i, false, false));
                        System.out.println(getStr(m, j, false, false));
                        return;
                    }

                }
                if( res + FIB[k-3] == x){
                    if(n > 2 * i && m > 2 * j){
                        System.out.println(getStr(n, i, false, true));
                        System.out.println(getStr(m, j, true, false));
                        return;
                    }
                }
                if(k > 3 && (res + _2[k - 4])== x){
                    if(n >= 2 * i + 1 && m >= 2 * j + 2){
                        System.out.println(getStr(n, i, true, false));
                        System.out.println(getStr(m, j, true, true));
                        return;
                    }
                }
                if(k > 3 && (res + _2[k - 4] + FIB[k-3]) == x){
                    if(n >= 2 * i + 2 && m >= 2 * j + 2){
                        System.out.println(getStr(n, i, true, true));
                        System.out.println(getStr(m, j, true, true));
                        return;
                    }
                }
                if(k > 3 && (res + _1[k -4] == x)){
                    if(n >= 2*i + 1 && m >= 2*j + 1){
                        System.out.println(getStr(n, i, true, false));
                        System.out.println(getStr(m, j, false, true));
                        return;
                    }
                }
                if(k > 4 && (res + _1[k-5] == x)){
                    if(n >= 2*i && m >= 2 * j + 2){
                        System.out.println(getStr(n, i, false, false));
                        System.out.println(getStr(m, j, true, true));
                        return;
                    }
                }
                if(k > 4 && (res + _1[k-5] + FIB[k-3] == x)){
                    if(n >= 2*i + 1 && m >= 2*j + 2){
                        System.out.println(getStr(n, i, false, true));
                        System.out.println(getStr(m, j, true, true));
                        return;
                    }
                }
            }
        }
        System.out.println("Happy new year!");
    }

    private static String getStr (int len, int countAC, boolean isStartC, boolean isEndA){
        StringBuilder sb = new StringBuilder(len);
        int koef = 0;
        if(isStartC) {
            sb.append('C');
            koef++;
        }
        for (int i = 0; i < countAC; i++) {
            sb.append("AC");
        }
        if(isEndA)
            koef++;
        for (long i = 2 * countAC + koef; i < len; i++) {
            sb.append('D');
        }
        if(isEndA)
            sb.append('A');
        return sb.toString();
    }
}