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>
long long int a[55], b[55], c[3][55];
int combi[7][3] = {{0, 0, 0}, {1, 0, 0}, {0, 1, 0}, {0, 0, 1},
                   {1, 0, 1}, {0, 1, 1}, {1, 1, 1}};
int nnmm[7][2] = {{0, 0}, {1, 1}, {1, 1}, {0, 2}, {1, 2}, {1, 2}, {2, 2}};
char str1[105], str2[105];
int main() {
  int k, n, m;
  long long int x;
  scanf("%d %lld %d %d", &k, &x, &n, &m);
  a[1] = 1;
  b[2] = 1;
  int i, j;
  for (i = 3; i <= k; i++) {
    a[i] = a[i - 1] + a[i - 2];
    b[i] = b[i - 1] + b[i - 2];
  }
  c[0][3] = 1;
  for (i = 4; i <= k; i++) {
    for (j = 0; j < 3; j++) c[j][i] = c[j][i - 1] + c[j][i - 2];
    if (i % 2 == 0)
      c[1][i]++;
    else
      c[2][i]++;
  }
  int kk;
  bool flag = 0;
  for (kk = 0; kk < 7 && (!flag); kk++) {
    long long int aa = a[k], bb = b[k], nn = n, mm = m, xx = x;
    nn -= nnmm[kk][0];
    mm -= nnmm[kk][1];
    if (nn < 0 || mm < 0) continue;
    for (i = 0; i < 3; i++)
      if (combi[kk][i] == 1) xx -= c[i][k];
    nn /= 2;
    mm /= 2;
    for (i = 0; i <= nn && (!flag); i++) {
      for (j = 0; j <= mm && (!flag); j++) {
        if (xx == i * aa + j * bb) {
          flag = 1;
          int cnt1 = 0, cnt2 = 0;
          if (combi[kk][0] == 1) {
            str1[n - 1] = 'A';
            str2[0] = 'C';
          }
          if (combi[kk][1] == 1) {
            str1[0] = 'C';
            str2[m - 1] = 'A';
          }
          if (combi[kk][2] == 1) {
            str2[0] = 'C';
            str2[m - 1] = 'A';
          }
          if (str1[n - 1] == 'A') n--;
          if (str1[0] == 'C') cnt1++;
          if (str2[m - 1] == 'A') m--;
          if (str2[0] == 'C') cnt2++;
          while (i != 0) {
            str1[cnt1++] = 'A';
            str1[cnt1++] = 'C';
            i--;
          }
          for (; cnt1 < n; cnt1++) {
            str1[cnt1] = 'B';
          }
          while (j != 0) {
            str2[cnt2++] = 'A';
            str2[cnt2++] = 'C';
            j--;
          }
          for (; cnt2 < m; cnt2++) {
            str2[cnt2] = 'B';
          }
          printf("%s\n%s", str1, str2);
        }
      }
    }
  }
  if (!flag) printf("Happy new year!");
  return 0;
}