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;
struct node {
  long long c[3];
  int ch[2];
} fib[100];
node add(node a, node b) {
  node ret;
  int i;
  for (i = 0; i < 3; i++) {
    ret.c[i] = a.c[i] + b.c[i];
  }
  if (a.ch[1] == 0 && b.ch[0] == 1) ret.c[2]++;
  ret.ch[0] = a.ch[0];
  ret.ch[1] = b.ch[1];
  return ret;
}
string pr(int id1) {
  if (id1 == 0)
    return "A";
  else if (id1 == 1)
    return "C";
  else
    return "X";
}
string prin(int id1, int id2, int len) {
  string ret = "";
  ret += pr(id1);
  id1 ^= 1;
  len--;
  while (len > 1) {
    ret += pr(id1);
    id1 ^= 1;
    len--;
  }
  if (len) {
    ret += pr(id2);
  }
  return ret;
}
long long cou(string s) {
  int i;
  long long ret = 0;
  int ln = (int)s.length();
  for (i = 0; i < (ln - 1); i++) {
    if (s[i] == 'A' && s[i + 1] == 'C') ret++;
  }
  return ret;
}
void prin(int id1, int id2, int len, int len2) {
  string ret = prin(id1, id2, len);
  long long ase = cou(ret);
  long long destroy = ase - len2;
  int i, ln = ret.length();
  for (i = 0; i < ln - 1; i++) {
    if (destroy && ret[i] == 'A' && ret[i + 1] == 'C') {
      if (i != 0) {
        ret[i] = 'X';
        destroy--;
        continue;
      } else if ((i + 1) != (ln - 1)) {
        ret[i + 1] = 'X';
        destroy--;
        continue;
      }
    }
  }
  cout << ret << endl;
}
int main() {
  long long x, ii, jj;
  int n1, n2, k, i1, i2, j1, j2, i;
  int I[2], J[2];
  scanf("%d %I64d %d %d", &k, &x, &n1, &n2);
  for (i1 = 0; i1 <= 2; i1++)
    for (i2 = 0; i2 <= 2; i2++)
      for (j1 = 0; j1 <= 2; j1++)
        for (j2 = 0; j2 <= 2; j2++) {
          I[0] = i1;
          I[1] = i2;
          J[0] = j1;
          J[1] = j2;
          if (n1 == 1) I[1] = I[0];
          if (n2 == 1) J[1] = J[0];
          fib[1].ch[0] = I[0];
          fib[1].ch[1] = I[1];
          fib[1].c[0] = 1;
          fib[1].c[1] = 0;
          fib[1].c[2] = 0;
          long long mx1 = cou(prin(I[0], I[1], n1));
          long long mn1 = 0;
          if (n1 == 2 && I[0] == 0 && I[1] == 1) mn1 = 1;
          fib[2].ch[0] = J[0];
          fib[2].ch[1] = J[1];
          fib[2].c[0] = 0;
          fib[2].c[1] = 1;
          fib[2].c[2] = 0;
          long long mx2 = cou(prin(J[0], J[1], n2));
          long long mn2 = 0;
          if (n2 == 2 && J[0] == 0 && J[1] == 1) mn2 = 1;
          for (i = 3; i <= k; i++) {
            fib[i] = add(fib[i - 2], fib[i - 1]);
          }
          if (fib[k].c[2] > x) continue;
          fib[k].c[2] = x - fib[k].c[2];
          for (ii = mn1; ii <= mx1; ii++)
            for (jj = mn2; jj <= mx2; jj++) {
              if ((fib[k].c[0] * ii + fib[k].c[1] * jj) == fib[k].c[2]) {
                prin(I[0], I[1], n1, ii);
                prin(J[0], J[1], n2, jj);
                return 0;
              }
            }
        }
  printf("Happy new year!\n");
  return 0;
}