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.InputStreamReader;
import java.io.IOException;
import java.util.InputMismatchException;
import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.StringTokenizer;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 * @author RiaD
 */
public class Main {
	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		Reader in = new Reader(inputStream);
		OutputWriter out = new OutputWriter(outputStream);
		TaskD solver = new TaskD();
		solver.solve(1, in, out);
		out.close();
	}
}

class TaskD {
    public void solve(int testNumber, Reader in, OutputWriter out) {
        int k = in.nextInt();
        int x = in.nextInt();
        int n = in.nextInt();
        int m = in.nextInt();
        for(int start1withC = 0 ; start1withC <= 1; ++start1withC) {
            for(int start2withC = 0; start2withC <= 1; ++start2withC) {
                for(int end1withA = 0; end1withA <= 1; ++end1withA) {
                    for(int end2withA = 0; end2withA <= 1; ++end2withA) {
                        for(int timesACin1 = 0; timesACin1 * 2 + start1withC + end1withA <= n; ++timesACin1) {
                             for(int timesACin2 = 0; timesACin2 * 2 + start2withC + end2withA <= m; ++timesACin2) {
                                 boolean s1c = start1withC == 1;
                                 boolean s2c = start2withC == 1;
                                 boolean e1a = end1withA == 1;
                                 boolean e2a = end2withA == 1;
                                 long cnt1 = timesACin1;
                                 long cnt2 = timesACin2;

                                 for(int t = 0; t + 2 < k; ++t) {
                                     long cnt3 = cnt1 + cnt2 + (e1a && s2c ? 1 : 0);
                                     if(cnt3 > x) {
                                         cnt2 = cnt3;
                                         break;
                                     }
                                     boolean e3a = e2a;
                                     boolean s3c = s1c;
                                     s1c = s2c;
                                     s2c = s3c;
                                     e1a = e2a;
                                     e2a = e3a;
                                     cnt1 = cnt2;
                                     cnt2 = cnt3;
                                 }

                                 if(cnt2 == x) {
                                     for(int z = 0; z < start1withC; ++z) {
                                         out.print("C");
                                     }
                                     for(int i = 0; i < timesACin1; ++i )
                                         out.print("AC");
                                     for(int i = 0; i < n - timesACin1 * 2 - start1withC - end1withA; ++i) {
                                         out.print("B");
                                     }
                                     for(int i = 0; i < end1withA; ++i) {
                                         out.print("A");
                                     }
                                     out.println();
                                     for(int z = 0; z < start2withC; ++z) {
                                         out.print("C");
                                     }
                                     for(int i = 0; i < timesACin2; ++i )
                                         out.print("AC");
                                     for(int i = 0; i < m - timesACin2 * 2 - start2withC - end2withA; ++i) {
                                         out.print("B");
                                     }
                                     for(int i = 0; i < end2withA; ++i) {
                                         out.print("A");
                                     }
                                     return;
                                 }

                             }
                        }
                    }
                }
            }
        }
        out.println("Happy new year!");
    }
}

class Reader {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    public Reader(BufferedReader reader) {
        this.reader = reader;
    }

    public Reader(InputStream stream) {
        this(new BufferedReader(new InputStreamReader(stream)));
    }

    public String nextString() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(readLine());
        }
        return tokenizer.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(nextString());
    }

    private String readLine() {
        try {
            return reader.readLine();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}

class OutputWriter extends PrintWriter {

	public OutputWriter(OutputStream out) {
		super(out);
	}

	public OutputWriter(java.io.Writer writer){
		super(writer);
	}

	}