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

import static java.lang.Math.*;
import static java.math.BigInteger.*;
import static java.util.Arrays.*;



public class Main {

    void run(){
        boolean oj = System.getProperty("ONLINE_JUDGE") != null;
        try{
            if( oj ){
                in  = new FastScanner( new InputStreamReader(System.in  ) );
                out = new PrintWriter(   new OutputStreamWriter(System.out) );
            } else{
                in  = new FastScanner(new FileReader("in.txt") );
                out = new PrintWriter(   new FileWriter("out.txt") );
            }
        } catch (Exception e) {
            System.exit(-1);
        }
        long tB = System.currentTimeMillis();
        solve();
//        out.println( "Time: " + (System.currentTimeMillis()-tB)/1e3 );
        out.flush();
    }

    class FastScanner{
        BufferedReader br;
        StringTokenizer st = new StringTokenizer("");
        FastScanner( InputStreamReader a ){
            br = new BufferedReader(a);
        }
        FastScanner( FileReader a ){
            br = new BufferedReader(a);
        }
        String next(){
            while( !st.hasMoreTokens() )
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    return null;
                }
            return st.nextToken();
        }
        int nextInt(){ return Integer.parseInt(next()); }
    }

    FastScanner in;
    PrintWriter out;



    public static void main(String[] args){
//        new Main().run();
        new Thread( null, new Runnable() {
            @Override
            public void run() {
                new Main().run();
            }
        }, "myThread", 1L<<32 ).start();
    }



    void TLE(){ for(;;); }

    void MLE(){
        int[][] adj = new int[1024*1024][];
        for( int i = 0; i < adj.length; ++i )
            adj[i] = new int[1024*1024];
    }

    void exit( int val ){
        out.flush();
        System.exit(val);
    }
    //////////////////////////////


    int k, x, n, m;
    char[] s1, s2;

    int cntAC( char[] s ){
        int ans = 0;
        for( int i = 0; i+1 < s.length; ++i )
            if( s[i]=='A' && s[i+1]=='C' )
                ++ans;
        return ans;
    }

    long f(){
        char[]
                b = new char[k+1],
                e = new char[k+1];
        long[] cntAC = new long[k+1];

        b[1] = s1[0];
        b[2] = s2[0];
        e[1] = s1[n-1];
        e[2] = s2[m-1];
        cntAC[1] = cntAC(s1);
        cntAC[2] = cntAC(s2);

        for( int i = 3; i <= k; ++i ){
            cntAC[i] = cntAC[i-2] + cntAC[i-1];
            if( e[i-2]=='A' && b[i-1]=='C' ) ++cntAC[i];
            b[i] = b[i-2];
            e[i] = e[i-1];
            cntAC[i] = min( cntAC[i], Integer.MAX_VALUE );
        }
        return cntAC[k];
    }

    void solve(){
        k = in.nextInt();
        x = in.nextInt();
        n = in.nextInt();
        m = in.nextInt();
        s1 = new char[n];
        s2 = new char[m];

        if( x == 0 ){
            fill( s1, 'B' );
            fill( s2, 'B' );
            out.println(new String(s1));
            out.println(new String(s2));
            return;
        }

        for( char a = 'A'; a <= 'C'; ++a ){
        for( char b = 'A'; b <= 'C'; ++b ){
            fill( s1, 'B' );
            s1[0  ] = a;
            s1[n-1] = b;
            int i=0;
            do{
                for( char c = 'A'; c <= 'C'; ++c ){
                for( char d = 'A'; d <= 'C'; ++d ){
                    fill( s2, 'B' );
                    s2[0  ] = c;
                    s2[m-1] = d;
                    int j = 0;
                    do{


                        if( x == f() ){
                            out.println( new String(s1) );
                            out.println( new String(s2) );
                            return;
                        }

                        while( j < m && s2[j]=='C' ) ++j;
                        if( j+1 < m && (s2[j]=='B' || s2[j]=='A') ){
                            s2[j]   = 'A';
                            s2[j+1] = 'C';
                            ++j;
                        }
                        else j = m;
                    }while( j < m );
                }
                }

                while( i < n && s1[i]=='C' ) ++i;
                if( i+1 < n && (s1[i]=='B' || s1[i]=='A') ){
                    s1[i]   = 'A';
                    s1[i+1] = 'C';
                    ++i;
                }
                else i = n;
            }while( i < n );
        }
        }
        out.println( "Happy new year!" );
    }


}