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;
long long n, m, k, x, j, i, a[100], b[100], f[100], res, len1, len2;
long long nm[100], mn[100], mm[100], nn[100], mask;
char get(int x, int y) {
  if (!y) return 'B';
  if (x) return 'C';
  return 'A';
}
string getAns(bool a, bool b, int n, int k, int a1, int b1) {
  int i;
  string ans = "";
  if (n == 1) return ans = get(a, a1);
  if (a == 0 && a1) {
    for (i = 0; i < k; i++) ans += "AC";
    if (k * 2 != n) {
      for (i = 0; i < n - 2 * k; i++) ans += get(b, b1);
    }
    return ans;
  }
  if (b == 1 && b1) {
    for (i = 0; i < k; i++) ans += "AC";
    if (k * 2 != n) {
      for (i = 0; i < n - 2 * k; i++) ans = get(a, a1) + ans;
    }
    return ans;
  }
  for (i = 0; i < k; i++) ans += "AC";
  while (ans.size() + 2 < n) ans += "B";
  return get(a, a1) + ans + get(b, b1);
}
int main() {
  cin >> k >> x >> n >> m;
  a[0] = 0;
  b[0] = 0;
  a[1] = 1;
  b[1] = 1;
  f[0] = 1;
  f[1] = 1;
  for (i = 2; i < k; i++) {
    if (b[i - 2] == 0 && a[i - 1] == 0) nn[i]++;
    if (b[i - 2] == 1 && a[i - 1] == 1) mm[i]++;
    if (b[i - 2] == 0 && a[i - 1] == 1) nm[i]++;
    if (b[i - 2] == 1 && a[i - 1] == 0) mn[i]++;
    f[i] = f[i - 1] + f[i - 2];
    nm[i] += nm[i - 1] + nm[i - 2];
    mn[i] += mn[i - 1] + mn[i - 2];
    mm[i] += mm[i - 1] + mm[i - 2];
    nn[i] += nn[i - 1] + nn[i - 2];
    a[i] = a[i - 2];
    b[i] = b[i - 1];
  }
  k--;
  for (mask = 0; mask < (1 << 8); mask++) {
    if (n == 1 && (bool(mask & 1) ^ bool(mask & 2))) continue;
    if (n == 1 && (bool(mask & 16) ^ bool(mask & 32))) continue;
    if (m == 1 && (bool(mask & 4) ^ bool(mask & 8))) continue;
    if (m == 1 && (bool(mask & 64) ^ bool(mask & 128))) continue;
    if ((mask & 16) && (mask & 32) && !(mask & 1) && (mask & 2))
      len1 = n / 2;
    else {
      if ((!(mask & 1) && (mask & 16)) || ((mask & 2) && (mask & 32)))
        len1 = (n - 1) / 2;
      else
        len1 = (n - 2) / 2;
    }
    if ((mask & 64) && (mask & 128) && !(mask & 4) && (mask & 8))
      len2 = m / 2;
    else {
      if ((!(mask & 4) && (mask & 64)) || ((mask & 8) && (mask & 128)))
        len2 = (m - 1) / 2;
      else
        len2 = (m - 2) / 2;
    }
    for (i = 0; i <= len1; i++) {
      for (j = 0; j <= len2; j++) {
        res = f[k - 2] * i + f[k - 1] * j;
        if ((mask & 16) && (mask & 32))
          res += ((mask & 1) && !(mask & 2)) * nn[k];
        if ((mask & 64) && (mask & 128))
          res += ((mask & 4) && !(mask & 8)) * mm[k];
        if ((mask & 32) && (mask & 64))
          res += (!(mask & 2) && (mask & 4)) * nm[k];
        if ((mask & 16) && (mask & 128))
          res += (!(mask & 8) && (mask & 1)) * mn[k];
        if (res == x) {
          cout << getAns(mask & 1, mask & 2, n, i, mask & 16, mask & 32)
               << endl;
          cout << getAns(mask & 4, mask & 8, m, j, mask & 64, mask & 128);
          return 0;
        }
      }
    }
  }
  cout << "Happy new year!";
  return 0;
}