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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
char a[110];
char b[110];
int main() {
  int k, x, n, m;
  scanf("%d%d%d%d", &k, &x, &n, &m);
  int flag = 0;
  for (int i1 = 0; i1 <= n / 2; i1++)
    for (int i2 = 0; i2 <= m / 2; i2++)
      for (int ab = 0; ab <= 1; ab++)
        for (int bb = 0; bb <= 1; bb++)
          for (int ba = 0; ba <= 1; ba++) {
            if (ab == 1 && ba == 1 && bb == 0) continue;
            long long sum1 = i1, sum2 = i2, sum3 = i1 + i2 + ab;
            int sign = 0;
            for (int j = 4; j <= k; j++) {
              sum1 = sum2;
              sum2 = sum3;
              sum3 = sum1 + sum2 + (j % 2 == 0 ? ba : bb);
              if (sum3 > x) {
                sign = 1;
                break;
              }
            }
            if (sign == 1) continue;
            if (sum3 != x) continue;
            int tn = n, tm = m;
            memset(a, 0, sizeof(a));
            memset(b, 0, sizeof(b));
            if (bb == 1) {
              if (m == 1) continue;
              b[0] = 'C';
              b[m - 1] = 'A';
              tm -= 2;
            }
            if ((ab == 1 && ba == 1) && (n == 1 || m == 1)) continue;
            if (ab == 1) {
              if (b[0] == 0) {
                b[0] = 'C';
                tm--;
              }
              a[n - 1] = 'A';
              tn--;
            }
            if (ba == 1) {
              if (b[m - 1] == 0) {
                b[m - 1] = 'A';
                tm--;
              }
              a[0] = 'C';
              tn--;
            }
            if (tn >= 2 * i1 && tm >= 2 * i2) {
              flag = 1;
              int cnt = 0;
              for (int i = 0; i < n; i++) {
                if (a[i] != 0)
                  printf("%c", a[i]);
                else {
                  if (cnt < i1) {
                    printf("AC");
                    i++;
                    cnt++;
                  } else {
                    printf("B");
                  }
                }
              }
              printf("\n");
              cnt = 0;
              for (int i = 0; i < m; i++) {
                if (b[i] != 0)
                  printf("%c", b[i]);
                else {
                  if (cnt < i2) {
                    printf("AC");
                    i++;
                    cnt++;
                  } else
                    printf("B");
                }
              }
              printf("\n");
              return 0;
            }
          }
  if (flag == 0) printf("Happy new year!\n");
  return 0;
}