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.ArrayList;
import java.util.List;
import java.util.Scanner;

public class NewYearLetter {
    
    int k, x, n, m;
    
    private void input() {
        Scanner in = new Scanner(System.in);
        k = in.nextInt();
        x = in.nextInt();
        n = in.nextInt();
        m = in.nextInt();
    }
    
    private static class State {
        int start, end;
        long cnt;
        public State(int s, int e, long c) {
            this.start = s;
            this.end = e;
            this.cnt = c;
        }
    }
    
    private void generateStates(List<State> states, int n) {
        if (n == 1) {
            states.add(new State(1, 1, 0));
            states.add(new State(2, 2, 0));
            states.add(new State(3, 3, 0));
        } else if (n == 2) {
            for (int start = 1; start <= 3; start++)
                for (int end = 1; end <= 3; end++)
                    if (start == 1 && end == 2) states.add(new State(start, end, 1));
                    else states.add(new State(start, end, 0));
        } else if (n == 3){
            for (int start = 1; start <= 3; start++)
                for (int end = 1; end <= 3; end++) {
                    states.add(new State(start, end, 0));
                    if (start == 1 || end == 2) {
                        states.add(new State(start, end, 1));
                    }
                }
        } else {
            for (int start = 1; start <= 3; start++)
                for (int end = 1; end <= 3; end++) {
                    int len;
                    if (start == 1)
                        if (end == 2) len = (n-4)/2 + 2;
                        else len = (n-3)/2 + 1;
                    else
                        if (end == 2) len = (n-3)/2 + 1;
                        else len = (n-2)/2;
                    for (int mid = 0; mid <= len; mid++)
                        states.add(new State(start, end, mid));
                }
        }
    }
    
    State result1, result2;
    
    private void solve() {
        List<State> s1States = new ArrayList<State>();
        generateStates(s1States, n);
        List<State> s2States = new ArrayList<State>();
        generateStates(s2States, m);
        result1 = result2 = null;
        for (State s1 : s1States)
            for (State s2 : s2States) {
                State a = s1;
                State b = s2;
                for (int i = 3; i <= k; i++) {
                    State c = new State(a.start, b.end, a.cnt + b.cnt);
                    if (a.end == 1 && b.start == 2) c.cnt++;
                    a = b;
                    b = c;
                }
                if (b.cnt == x) {
                    result1 = s1;
                    result2 = s2;
                    return ;
                }
            }
    }
    
    private char getChar(int p) {
        if (p == 1) return 'A';
        if (p == 2) return 'C';
        return 'X';
    }
    
    private String generateString(State s, int n) {
        StringBuilder ans = new StringBuilder();
        if (n == 1) {
            ans.append(getChar(s.start));
        } else if (n == 2) {
            ans.append(getChar(s.start)).append(getChar(s.end));
        } else if (n == 3){
            if (s.cnt == 0)
                ans.append(getChar(s.start)).append('X').append(getChar(s.end));
            else
                if (s.start == 1)
                    ans.append(getChar(s.start)).append('C').append(getChar(s.end));
                else
                    ans.append(getChar(s.start)).append('A').append(getChar(s.end));
        } else {
            if (s.cnt <= (n-2)/2) {
                ans.append(getChar(s.start));
                for (int i = 0; i < s.cnt; i++) ans.append("AC");
                for (int i = 0; i < n-2-2*s.cnt; i++) ans.append('X');
                ans.append(getChar(s.end));
            } else {
                if (s.start == 1)
                    if (s.cnt == (n-3)/2+1) {
                        ans.append(getChar(s.start));
                        ans.append('C');
                        for (int i = 1; i < s.cnt; i++) ans.append("AC");
                        for (int i = 0; i < n-1-2*s.cnt; i++) ans.append('X');
                        ans.append(getChar(s.end));
                    } else {
                        ans.append(getChar(s.start));
                        ans.append('C');
                        for (int i = 2; i < s.cnt; i++) ans.append("AC");
                        for (int i = 0; i < n-2*s.cnt; i++) ans.append('X');
                        ans.append('A');
                        ans.append(getChar(s.end));
                    }
                else {
                    ans.append(getChar(s.start));
                    for (int i = 1; i < s.cnt; i++) ans.append("AC");
                    for (int i = 0; i < n-1-2*s.cnt; i++) ans.append('X');
                    ans.append('A');
                    ans.append(getChar(s.end));
                }
            }
        }
        return ans.toString();
    }
    
    private void output() {
        if (result1 != null) {
            System.out.println(generateString(result1, n));
            System.out.println(generateString(result2, m));
        } else {
            System.out.println("Happy new year!");
        }
    }
    
    public static void main(String[] args) {
        NewYearLetter n = new NewYearLetter();
        n.input();
        n.solve();
        n.output();
    }
    
}