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.StringTokenizer;

/**
 * @author Don Li
 */
public class NewYearLetter {
    
    void solve() {
        int k = in.nextInt(), x = in.nextInt(), n = in.nextInt(), m = in.nextInt();
        for (char a = 'A'; a <= 'C'; a++) {
            for (char b = 'A'; b <= 'C'; b++) {
                for (char c = 'A'; c <= 'C'; c++) {
                    for (char d = 'A'; d <= 'C'; d++) {
                        Letter s1 = new Letter(a, b, n);
                        Letter s2 = new Letter(c, d, m);
                        for (int i = 0; i <= n / 2; i++) {
                            for (int j = 0; j <= m / 2; j++) {
                                if (s1.can(i) && s2.can(j)) {
                                    Letter u = s1, v = s2;
                                    long cu = i, cv = j;
                                    for (int t = 3; t <= k; t++) {
                                        Letter w = concatenate(u, v);
                                        long cw = cu + cv;
                                        if (u.last == 'A' && v.first == 'C') cw++;
                                        cu = cv;
                                        cv = cw;
                                        u = v;
                                        v = w;
                                    }
                                    if (cv == x) {
                                        print(s1, i);
                                        print(s2, j);
                                        return;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        out.println("Happy new year!");
    }
    
    void print(Letter letter, int ac) {
        int n = letter.sz;
        char[] res = new char[n];
        res[0] = letter.first;
        for (int i = 1; i < n - 1; i++) {
            if (ac > 0) {
                if (res[i - 1] == 'A') {
                    res[i] = 'C';
                    ac--;
                } else {
                    res[i] = 'A';
                }
            } else {
                res[i] = 'B';
            }
        }
        res[n - 1] = letter.last;
        out.println(new String(res));
    }
    
    Letter concatenate(Letter s1, Letter s2) {
        return new Letter(s1.first, s2.last, -1);
    }
    
    static class Letter {
        char first, last;
        int sz;
        
        Letter(char first, char last, int sz) {
            this.first = first;
            this.last = last;
            this.sz = sz;
        }
        
        boolean can(int x) {
            if (sz == 1) {
                return x == 0 && first == last;
            }
            if (sz == 2) {
                if (first == 'A' && last == 'C') return x == 1;
                return x == 0;
            }
            int len = sz - 2;
            if (first == 'A') len++;
            if (last == 'C') len++;
            return len / 2 >= x;
        }
    }
    
    public static void main(String[] args) {
        in = new FastScanner(new BufferedReader(new InputStreamReader(System.in)));
        out = new PrintWriter(System.out);
        new NewYearLetter().solve();
        out.close();
    }
    
    static FastScanner in;
    static PrintWriter out;
    
    static class FastScanner {
        BufferedReader in;
        StringTokenizer st;
        
        public FastScanner(BufferedReader in) {
            this.in = in;
        }
        
        public String nextToken() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(in.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        
        public int nextInt() {
            return Integer.parseInt(nextToken());
        }
        
        public long nextLong() {
            return Long.parseLong(nextToken());
        }
        
        public double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}