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.math.*;
import java.util.*;
import java.util.concurrent.*;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedInputStream(System.in));
        PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));

        int k = in.nextInt();
        int x = in.nextInt();
        int n = in.nextInt();
        int m = in.nextInt();

        for (int b1 = 0; b1 < 3; ++b1) {
            for (int e1 = 0; e1 < 3; ++e1) {
                if (n == 1 && b1 != e1) continue;
                for (int b2 = 0; b2 < 3; ++b2) {
                    for (int e2 = 0; e2 < 3; ++e2) {
                        if (m == 1 && b2 != e2) continue;
                        Word w1 = new Word(b1, e1, n);
                        Word w2 = new Word(b2, e2, m);
                        for (long i = w1.min; i <= w1.max; ++i) {
                            for (long j = w2.min; j <= w2.max; ++j) {
                                Word[] words = new Word[k];
                                words[0] = new Word(b1, e1, n, i);
                                words[1] = new Word(b2, e2, m, j);
                                for (int l = 2; l < k; ++l) {
                                    words[l] = Word.concat(words[l-2], words[l-1]);
                                }
                                if (words[k-1].min == x) {
                                    out.println(words[0]);
                                    out.println(words[1]);
                                    out.flush();
                                    return;
                                }
                            }
                        }
                    }
                }
            }
        }
        out.println("Happy new year!");
        out.flush();
    }

    static class Word {
        public static final int A = 0;
        public static final int B = 1;
        public static final int C = 2;

        final int beg;
        final int end;

        final long len;
        final long min;
        final long max;

        public Word(int beg, int end, long len) {
            this.beg = beg;
            this.end = end;
            this.len = len;

            if (len == 1) {
                this.min = 0;
                this.max = this.min;
            } else if (len == 2) {
                this.min = beg == A && end == C ? 1 : 0;
                this.max = this.min;
            } else {
                this.min = 0;
                this.max = (len - 2 + (beg == A ? 1 : 0) + (end == C ? 1 : 0)) / 2;
            }
        }

        public Word(int beg, int end, long len, long count) {
            this.beg = beg;
            this.end = end;
            this.len = len;
            this.min = count;
            this.max = count;
        }

        public static Word concat(Word w1, Word w2) {
            return new Word(w1.beg, w2.end, w1.len + w2.len,
                    w1.min + w2.min + (w1.end == A && w2.beg == C ? 1 : 0));
        }

        @Override
        public String toString() {
            char[] result = new char[(int) len];
            Arrays.fill(result, 'B');

            result[0] = (char) (beg + 'A');
            result[(int) (len - 1)] = (char) (end + 'A');

            int used = 0;
            int beginIndex = 1;



            if (len == 2 && beg == A && end == C) {
                used++;
            }

            if (len > 2) {
                if (beg == A && used < min) {
                    used++;
                    beginIndex = 2;
                    result[1] = 'C';
                }

                if (end == C && used < min) {
                    used++;
                    result[(int) (len - 2)] = 'A';
                }

                while (used < min) {
                    result[beginIndex++] = 'A';
                    result[beginIndex++] = 'C';
                    used++;
                }
            }

            return String.valueOf(result);
        }

    }
}