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;
const int MAXN = 55;
long long v1[MAXN], v2[MAXN], v12[MAXN], v21[MAXN], v22[MAXN];
string a1, a2;
void output() { cout << a1 << endl << a2; }
void solve() {
  long long x, curi, curj, curk, curl, curm;
  int i, j, k, l, m, n, l1, l2, ii, offset1, offset2;
  cin >> n >> x >> l1 >> l2;
  if (x == 0) {
    for (i = 0; i < l1; i++) {
      putchar('A');
    }
    putchar('\n');
    for (i = 0; i < l2; i++) {
      putchar('A');
    }
    return;
  }
  v1[1] = 1, v1[2] = 0;
  v2[1] = 0, v2[2] = 1;
  v12[1] = 0, v12[2] = 0, v12[3] = 1;
  v21[1] = 0, v21[2] = 0;
  v22[1] = 0, v22[2] = 0;
  for (i = 3; i <= n; i++) {
    v1[i] = v1[i - 2] + v1[i - 1];
    v2[i] = v2[i - 2] + v2[i - 1];
    if (i != 3) {
      v12[i] = v12[i - 2] + v12[i - 1];
    }
    v21[i] = v21[i - 2] + v21[i - 1];
    if (i % 2 == 0) {
      v21[i]++;
    }
    v22[i] = v22[i - 2] + v22[i - 1];
    if ((i != 3) && (i % 2 == 1)) {
      v22[i]++;
    }
  }
  for (i = 0; i < 2; i++) {
    curi = x - i * v12[n];
    if (curi < 0) {
      continue;
    }
    for (j = 0; j < 2; j++) {
      curj = curi - j * v21[n];
      if (curj < 0) {
        continue;
      }
      if (i == 1 && j == 1 && (l1 == 1 || l2 == 1)) {
        continue;
      }
      for (m = 0; m < 2; m++) {
        curm = curj - m * v22[n];
        if (curm < 0) {
          continue;
        }
        if (m == 1 && l2 == 1) {
          continue;
        }
        offset1 = l1 - i - j;
        for (k = 0; k <= offset1 / 2; k++) {
          curk = curm - k * v1[n];
          if (curk < 0) {
            continue;
          }
          offset2 = l2;
          if (m == 1) {
            offset2 -= 2;
          } else {
            offset2 -= i + j;
          }
          for (l = 0; l <= offset2 / 2; l++) {
            curl = curk - l * v2[n];
            if (curl == 0) {
              if (i) {
                a2 = "C";
              }
              if (j) {
                a1 = "C";
              }
              if (m) {
                a2 = "C";
              }
              for (ii = 0; ii < k; ii++) {
                a1 += "AC";
              }
              for (ii = 0; ii < l; ii++) {
                a2 += "AC";
              }
              while (a1.length() < l1 - i) {
                a1 += "B";
              }
              if (i) {
                a1 += "A";
              }
              while (a2.length() < l2 - max(j, m)) {
                a2 += "B";
              }
              if (j || m) {
                a2 += "A";
              }
              output();
              return;
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!";
}
int main() {
  int t;
  t = 1;
  while (t) {
    t--;
    solve();
  }
}