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 fab[75], fba[75], fbb[75], fa[75], fb[75];
long long i, j, k, p, n, m, x, y, s, t, r, an, bn, w;
bool fin;
char pa[2 * 75], pb[2 * 75];
void work() {
  fab[3] = 1;
  for (i = 4; i <= k; ++i) fab[i] = fab[i - 1] + fab[i - 2];
  for (i = 4; i <= k; ++i) {
    fba[i] = fba[i - 1] + fba[i - 2];
    if ((i & 1) == 0) fba[i]++;
  }
  for (i = 5; i <= k; ++i) {
    fbb[i] = fbb[i - 1] + fbb[i - 2];
    if ((i & 1) == 1) fbb[i]++;
  }
  fa[3] = 1;
  fa[2] = 0;
  fb[2] = fb[3] = 1;
  for (i = 4; i <= k; ++i)
    fa[i] = fa[i - 1] + fa[i - 2], fb[i] = fb[i - 1] + fb[i - 2];
}
void ex_gcd(long long a, long long b) {
  if (b == 0) {
    p = a;
    x = 1;
    y = 0;
    return;
  } else {
    ex_gcd(b, a % b);
    long long t = x;
    x = y;
    y = t - (a / b) * y;
  }
}
bool check(long long N) {
  if (N % p || N < 0) return 0;
  long long st = N / p;
  an = st * x;
  bn = st * y;
  while (an < 0) an += fb[k], bn -= fa[k];
  while (bn < 0) bn += fa[k], an -= fb[k];
  if (an < 0 || bn < 0) return 0;
  if (an * 2 <= n && bn * 2 <= m)
    return 1;
  else if (an * 2 > n) {
    while (an * 2 > n) an -= fb[k], bn += fa[k];
    if (an < 0 || bn * 2 > m)
      return 0;
    else
      return 1;
  } else if (bn * 2 > m) {
    while (bn * 2 > m) bn -= fa[k], an += fb[k];
    if (bn < 0 || an * 2 > n)
      return 0;
    else
      return 1;
  } else
    return 0;
}
int main() {
  scanf(
      "%I64d"
      "%I64d"
      "%I64d"
      "%I64d"
      "\n",
      &k, &s, &n, &m);
  work();
  fin = 0;
  if (n == 1 && m == 1) {
    if (fab[k] == s) {
      printf("A\n");
      printf("C\n");
    } else if (fba[k] == s) {
      printf("C\n");
      printf("A\n");
    } else
      printf("Happy new year!\n");
  } else {
    ex_gcd(fa[k], fb[k]);
    for (int p1 = 0; p1 <= 1; ++p1) {
      for (int p2 = 0; p2 <= 1; ++p2) {
        for (int p3 = 0; p3 <= 1; ++p3) {
          t = s - p1 * fab[k] - p2 * fba[k] - p3 * fbb[k];
          if (check(t)) {
            if (p1 == p2 && p1 == 1 && p3 == 0) break;
            long long ra = n - 1, rb = m - 1, la = 0, lb = 0;
            if (p1 == 1) pa[n - 1] = 'A', pb[0] = 'C', ra--, lb++;
            if (p2 == 1) pa[0] = 'C', pb[m - 1] = 'A', la++, rb--;
            if (p3 == 1) {
              pb[0] = 'C', pb[m - 1] = 'A';
              lb = 1;
              rb = m - 2;
            }
            if ((ra - la + 1) < an * 2 || (rb - lb + 1) < bn * 2) break;
            fin = 1;
            for (i = la, w = 0; w < an * 2; ++i, ++w)
              if ((w & 1) == 0)
                pa[i] = 'A';
              else
                pa[i] = 'C';
            for (; i <= ra; ++i) pa[i] = 'P';
            for (i = lb, w = 0; w < bn * 2; ++i, ++w)
              if ((w & 1) == 0)
                pb[i] = 'A';
              else
                pb[i] = 'C';
            for (; i <= rb; ++i) pb[i] = 'Q';
            break;
          }
        }
        if (fin) break;
      }
      if (fin) break;
    }
    if (fin) {
      printf("%s\n", pa);
      printf("%s\n", pb);
    } else
      printf("Happy new year!\n");
  }
  return 0;
}