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;
inline long FastMax(long x, long y) {
  return (((y - x) >> (32 - 1)) & (x ^ y)) ^ y;
}
inline long FastMin(long x, long y) {
  return (((y - x) >> (32 - 1)) & (x ^ y)) ^ x;
}
int K, n, m, x;
long long fib[60];
char s1[107], s2[107];
bool check(int t1, int t2) {
  long long tot = t1 + t2;
  if (tot > x) return false;
  char st1 = s1[0];
  char en1 = s1[n - 1];
  char st2 = s2[0];
  char en2 = s2[m - 1];
  long long f1 = t1;
  long long f2 = t2;
  long long f3;
  char st3, en3;
  for (int i = 3; i <= K; i++) {
    if (tot > x) return false;
    f3 = f1 + f2;
    if (en1 == 'A' && st2 == 'C') f3++;
    st3 = st1;
    en3 = en2;
    st1 = st2;
    en1 = en2;
    st2 = st3;
    en2 = en3;
    f1 = f2;
    f2 = f3;
    tot = f3;
  }
  if (tot == x) return true;
  return false;
}
int main() {
  scanf("%d%d%d%d", &K, &x, &n, &m);
  bool pl = false;
  s1[n] = 0;
  s2[m] = 0;
  for (int i = 0; i < 9; i++) {
    for (int j = 0; j < 9; j++) {
      if (i <= 2) {
        s1[0] = 'A';
      } else if (i > 2 && i <= 5)
        s1[0] = 'C';
      else if (i > 5)
        s1[0] = 'D';
      if (j <= 2)
        s2[0] = 'A';
      else if (j > 2 && j <= 5)
        s2[0] = 'C';
      else if (j > 5)
        s2[0] = 'D';
      if (i % 3 == 0 && n > 1)
        s1[n - 1] = 'A';
      else if (i % 3 == 1 && n > 1)
        s1[n - 1] = 'C';
      else if (n > 1)
        s1[n - 1] = 'D';
      if (j % 3 == 0 && m > 1)
        s2[m - 1] = 'A';
      else if (j % 3 == 1 && m > 1)
        s2[m - 1] = 'C';
      else if (m > 1)
        s2[m - 1] = 'D';
      for (int l1 = 0; l1 <= n / 2 + 1; l1++)
        for (int l2 = 0; l2 <= m / 2 + 1; l2++) {
          int t1 = 0;
          int t2 = 0;
          if (n == 2) {
            if (s1[0] == 'A' && s1[n - 1] == 'C') t1++;
          }
          for (int k = 1; k < n - 1; k++) {
            if (s1[k - 1] == 'A' && t1 + 1 <= l1)
              s1[k] = 'C', t1++;
            else if (t1 + 1 <= l1 && k + 1 == n - 1 && s1[k + 1] == 'C')
              s1[k] = 'A', t1++;
            else if (k + 1 == n - 1 && s1[k + 1] == 'C')
              s1[k] = 'D';
            else {
              s1[k] = 'A';
              if (k + 1 == n - 1 && s1[k + 1] == 'C') t1++;
            }
          }
          if (m == 2 && s2[0] == 'A' && s2[1] == 'C') t2++;
          for (int k = 1; k < m - 1; k++) {
            if (s2[k - 1] == 'A' && t2 + 1 <= l2)
              s2[k] = 'C', t2++;
            else if (t2 + 1 <= l2 && k + 1 == m - 1 && s2[k + 1] == 'C')
              s2[k] = 'A', t2++;
            else if (k + 1 == m - 1 && s2[k + 1] == 'C')
              s2[k] = 'D';
            else
              s2[k] = 'A';
          }
          if (check(t1, t2)) {
            cout << s1 << endl;
            cout << s2 << endl;
            return 0;
          }
        }
    }
  }
  cout << "Happy new year!" << endl;
  return 0;
}