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;
template <class T>
inline T bigmod(T p, T e, T M) {
  if (e == 0) return 1;
  if (e % 2 == 0) {
    long long t = bigmod(p, e / 2, M);
    return (T)((t * t) % M);
  }
  return (T)(((long long)bigmod(p, e - 1, M) * (long long)(p)) % M);
}
template <class T>
inline T gcd(T a, T b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
template <class T>
inline T modinverse(T a, T M) {
  return bigmod(a, M - 2, M);
}
long long ar[3][11];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long a, b, c, d, e, f = 0, g, h = 1, x, y, z;
  cin >> a >> b >> c >> d;
  for (int i = 0; i <= 2; i++) {
    for (int j = 0; j <= 2; j++) {
      for (int k = 0; k <= 2; k++) {
        for (int p = 0; p <= 2; p++) {
          for (int n = 0; n <= 50; n++) {
            if (n * 2 > c) continue;
            if (c == 1 && i != j) continue;
            if (n * 2 == c && (i != 0 || j != 1)) continue;
            if (c != 1 && n * 2 == (c - 1) && (i != 0 && j != 1)) continue;
            if (c == 2 && i == 0 && j == 1 && n == 0) continue;
            for (int m = 0; m <= 50; m++) {
              if (m * 2 > d) continue;
              if (d == 1 && k != p) continue;
              if (m * 2 == d && (k != 0 || p != 1)) continue;
              if (d != 1 && m * 2 == (d - 1) && (k != 0 && p != 1)) continue;
              if (d == 2 && k == 0 && p == 1 && m == 0) continue;
              ar[0][0] = i;
              ar[0][1] = j;
              ar[0][2] = n;
              ar[1][0] = k;
              ar[1][1] = p;
              ar[1][2] = m;
              for (int l = 3; l <= a; l++) {
                ar[2][0] = ar[0][0];
                ar[2][1] = ar[1][1];
                ar[2][2] = ar[0][2] + ar[1][2];
                if (ar[0][1] == 0 && ar[1][0] == 1) ar[2][2]++;
                if (ar[2][2] > b) break;
                for (int tmp = (0); tmp < (3); ++tmp) {
                  ar[0][tmp] = ar[1][tmp];
                  ar[1][tmp] = ar[2][tmp];
                }
              }
              if (ar[2][2] == b) {
                if (i == 0)
                  cout << "A";
                else if (i == 1)
                  cout << "C";
                else
                  cout << "B";
                int fl = 0;
                if (i == 0 && n > 0) {
                  cout << "C";
                  for (int tmp = (0); tmp < (n - 1); ++tmp) cout << "AC";
                  for (int tmp = n * 2; tmp < c - 1; tmp++) cout << "B";
                } else {
                  fl++;
                  for (int tmp = (0); tmp < (n); ++tmp) cout << "AC";
                  for (int tmp = n * 2 + 1; tmp < c - 1; tmp++) cout << "B";
                }
                if (c != 1 && j == 0)
                  cout << "A";
                else if (c != 1 && j == 2)
                  cout << "B";
                else if (c != 1 && n * 2 != c - fl && j == 1)
                  cout << "C";
                cout << endl;
                if (k == 0)
                  cout << "A";
                else if (k == 1)
                  cout << "C";
                else
                  cout << "B";
                fl = 0;
                if (k == 0 && m > 0) {
                  cout << "C";
                  for (int tmp = (0); tmp < (m - 1); ++tmp) cout << "AC";
                  for (int tmp = m * 2; tmp < d - 1; tmp++) cout << "B";
                } else {
                  fl++;
                  for (int tmp = (0); tmp < (m); ++tmp) cout << "AC";
                  for (int tmp = m * 2 + 1; tmp < d - 1; tmp++) cout << "B";
                }
                if (d != 1 && p == 0)
                  cout << "A";
                else if (d != 1 && p == 2)
                  cout << "B";
                else if (d != 1 && m * 2 != d - fl && p == 1)
                  cout << "C";
                cout << endl;
                return 0;
              }
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!" << endl;
}