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;


public class Letter {
    static Fib[] a;
    public static void main(String[] args) throws IOException{
        BufferedReader scan = new BufferedReader(new InputStreamReader(System.in));
        String [] temp = scan.readLine().split("\\s");
        int k = Integer.parseInt(temp[0]);
        int x = Integer.parseInt(temp[1]);
        int n = Integer.parseInt(temp[2]);
        int m = Integer.parseInt(temp[3]);
        boolean b = false;
        a = new Fib[k];
        for(int i = 0; i < k; i++) a[i] = new Fib();
        int p = 0; int q = 0; int i = 0; int j = 0;
        while(i < 9){
            if(n > 1){
                if(i == 0){
                    p = (n - 2) / 2; a[0].start = 0; a[0].end = 0;
                } if(i == 1){
                    p = (n - 1) / 2; a[0].start = 1; a[0].end = 0;
                } if(i == 2){
                    p = (n - 2) / 2; a[0].start = 2; a[0].end = 0;
                } if(i == 3){
                    p = (n - 2) / 2; a[0].start = 0; a[0].end = 1;
                } if(i == 4){
                    p = (n - 1) / 2; a[0].start = 1; a[0].end = 1;
                } if(i == 5){
                    p = (n - 2) / 2; a[0].start = 2; a[0].end = 1;
                } if(i == 6){
                    p = (n - 1) / 2; a[0].start = 0; a[0].end = 2;
                } if(i == 7){
                    p = (n) / 2; a[0].start = 1; a[0].end = 2;
                } if(i == 8){
                    p = (n - 1) / 2; a[0].start = 2; a[0].end = 2;
                }//end if
            } else {
                p = 0;
                if(i < 2){
                    a[0].start = i; a[0].end = i;
                } else {
                    a[0].start = i; a[0].end = i;
                    i = 8;
                }//end if
            }
            j = 0;
            while(j < 9){
                if(m > 1){
                    if(j == 0){
                        q = (m - 2) / 2; a[1].start = 0; a[1].end = 0;
                    } if(j == 1){
                        q = (m - 1) / 2; a[1].start = 1; a[1].end = 0;
                    } if(j == 2){
                        q = (m - 2) / 2; a[1].start = 2; a[1].end = 0;
                    } if(j == 3){
                        q = (m - 2) / 2; a[1].start = 0; a[1].end = 1;
                    } if(j == 4){
                        q = (m - 1) / 2; a[1].start = 1; a[1].end = 1;
                    } if(j == 5){
                        q = (m - 2) / 2; a[1].start = 2; a[1].end = 1;
                    } if(j == 6){
                        q = (m - 1) / 2; a[1].start = 0; a[1].end = 2;
                    } if(j == 7){
                        q = (m) / 2; a[1].start = 1; a[1].end = 2;
                    } if(j == 8){
                        q = (m - 1) / 2; a[1].start = 2; a[1].end = 2;
                    } //end if
                } else {
                    q = 0;
                    if(j < 2){
                        a[1].start = j; a[1].end = j;
                    } else {
                        a[1].start = j; a[1].end = j;
                        j = 8;
                    }//end if
                }
                
                for(int w = 0; w <= p; w++){
                    a[0].ac = w;
                    for(int y = 0; y <= q; y++){
                        a[1].ac = y;
                        b = solve(2, k, x);
                        if(b){
                            p = w; q = y;
                            break;
                        }
                    }
                    if(b) break;
                }
                if(b) break;
                j++;
            }
            if(b) break;
            i++;
        }
        if(b){
            StringBuilder s1 = new StringBuilder();
            StringBuilder s2 = new StringBuilder();
            if(a[0].start == 0){
                s1.append('X');
                n--;
            } else if(a[0].start == 2) {
                s1.append('C');
                n--;
            } else {
                if(n > 1)s1.append("AC");
                else s1.append('A');
                n = n - 2;
                p--;
            }
            while(p > 0){
                s1.append("AC");
                p--;
                n = n - 2;
            }
            while(n > 1){
                s1.append("X");
                n--;
            }
            if(n > 0){
                if(a[0].end == 0) s1.append('X');
                else if(a[0].end == 1) s1.append('A');
                else s1.append('C');
            }
            
            if(a[1].start == 0){
                s2.append('X');
                m--;
            } else if(a[1].start == 2) {
                s2.append('C');
                m--;
            } else {
                if(m > 1)s2.append("AC");
                else s2.append('A');
                m = m - 2;
                q--;
            }
            while(q > 0){
                s2.append("AC");
                q--;
                m = m - 2;
            }
            while(m > 1){
                s2.append("X");
                m--;
            }
            if(m > 0){
                if(a[1].end == 0) s2.append('X');
                else if(a[1].end == 1) s2.append('A');
                else s2.append('C');
            }
            System.out.println(s1);
            System.out.println(s2);
        } else System.out.println("Happy new year!");
    }
    
    public static boolean solve(int i, int k, int x){
        a[i].start = a[i - 2].start;
        a[i].end = a[i - 1].end;
        a[i].ac = a[i - 2].ac + a[i - 1].ac;
        if(a[i - 2].end == 1 && a[i - 1].start == 2) a[i].ac = a[i].ac + 1;
        if(i == k - 1 && a[i].ac == x) return true;
        else if(i < k - 1 && a[i].ac <= x) return solve(i + 1, k, x); 
        return false;
    }
    
    public static class Fib{
        int start;
        int end;
        int ac;
    }
}