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>
using min_heap = priority_queue<T, vector<T>, greater<T>>;
template <class T, class U>
inline void MAX(T &a, U b) {
  if (a < b) a = b;
}
template <class T, class U>
inline void MIN(T &a, U b) {
  if (a > b) a = b;
}
template <class T, class U>
inline bool ckmax(T &a, U b) {
  return b > a && (a = b, true);
}
template <class T, class U>
inline bool ckmin(T &a, U b) {
  return b < a && (a = b, true);
}
template <class T, class U>
inline bool INR(T i, U l, U r) {
  return l <= i && i <= r;
}
const int MOD = (int)(1e9) + 7;
const int INF = 0x3f3f3f3f;
const int NINF = -0x3f3f3f40;
const long long INF_L = 0x3f3f3f3f3f3f3f3f;
const long long NINF_L = -0x3f3f3f3f3f3f3f40;
const int MAXN = 100010;
char arr[]{'A', 'C', 'Z'};
bool res(int n, int i1, int j1, string &s1) {
  int acc = 0;
  for (int i = 1; i < n; i++) {
    if (i == n - 1)
      s1 += arr[i1 % 3];
    else if (acc == j1)
      s1 += 'Z';
    else
      s1 += (s1[((int)(s1).size()) - 1] == 'C' ? 'A' : 'C');
    if (s1[i - 1] == 'A' && s1[i] == 'C') acc++;
  }
  return acc == j1;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout.precision(20);
  int k, x, n, m;
  cin >> k >> x >> n >> m;
  for (int i1 = 0; i1 < 9; i1++) {
    for (int j1 = 0; j1 <= n / 2; j1++) {
      for (int i2 = 0; i2 < 9; i2++) {
        for (int j2 = 0; j2 <= m / 2; j2++) {
          if (n == 1 && (i1 % 4 != 0) || m == 1 && (i2 % 4 != 0)) continue;
          pair<int, int> n1, n2;
          n1.first = i1, n1.second = j1;
          n2.first = i2, n2.second = j2;
          bool bad = false;
          for (int a = 0; a <= k - 3; a++) {
            pair<int, int> n3;
            n3.first = (n1.first / 3) * 3 + (n2.first % 3);
            n3.second = n1.second + n2.second;
            if (n1.first % 3 == 0 && n2.first / 3 == 1) n3.second++;
            if (n3.second > x) {
              bad = true;
              break;
            }
            n1 = n2, n2 = n3;
          }
          if (bad) continue;
          if (n2.second == x) {
            string s1 = "", s2 = "";
            s1 += arr[i1 / 3];
            if (n != 1) {
              if (!res(n, i1, j1, s1)) {
                continue;
              }
            }
            s2 += arr[i2 / 3];
            if (m != 1) {
              if (!res(m, i2, j2, s2)) {
                continue;
              }
            }
            cout << s1 << '\n' << s2 << '\n';
            return 0;
          }
        }
      }
    }
  }
  cout << "Happy new year!" << '\n';
}