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 k, x, n, m;
long long d[8][51];
long long f(int t, int n) {
  if (n <= 2) {
    if (t == 0 || t == 1) return n;
    if (2 <= t && t <= 5) return 0;
    if (t == 6) return n == 1;
    return n == 2;
  }
  if (d[t][n] >= 0) return d[t][n];
  if (t == 0)
    return d[t][n] = f(t, n - 2);
  else if (t == 1)
    return d[t][n] = f(t, n - 1);
  else if (t == 2)
    return d[t][n] = f(t, n - 1) + f(t, n - 2) +
                     (f(1, n - 2) == 1 && f(0, n - 1) == 1);
  else if (t == 3)
    return d[t][n] = f(t, n - 1) + f(t, n - 2) +
                     (f(1, n - 2) == 1 && f(0, n - 1) == 2);
  else if (t == 4)
    return d[t][n] = f(t, n - 1) + f(t, n - 2) +
                     (f(1, n - 2) == 2 && f(0, n - 1) == 1);
  else if (t == 5)
    return d[t][n] = f(t, n - 1) + f(t, n - 2) +
                     (f(1, n - 2) == 2 && f(0, n - 1) == 2);
  else
    return d[t][n] = f(t, n - 1) + f(t, n - 2);
}
int main() {
  memset(d, -1, sizeof(d));
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> k >> x >> n >> m;
  long long c11 = f(2, k), c12 = f(3, k), c21 = f(4, k), c22 = f(5, k),
            c1 = f(6, k), c2 = f(7, k);
  vector<long long> v;
  v.push_back(c12);
  v.push_back(c22);
  v.push_back(c21);
  v.push_back(c11);
  for (int i = 0; i < (1 << 4); i++) {
    if ((i & (1 << 1)) && m == 1) continue;
    if ((i & (1 << 3)) && n == 1) continue;
    if ((i & (1 << 0)) && (i & (1 << 2)) && (n == 1 || m == 1)) continue;
    long long r1, r2;
    if ((i & (1 << 3)) || ((i & (1 << 0)) && (i & (1 << 2))))
      r1 = (n - 2) / 2;
    else if ((i & (1 << 0)) || (i & (1 << 2)))
      r1 = (n - 1) / 2;
    else
      r1 = n / 2;
    if ((i & (1 << 1)) || ((i & (1 << 0)) && (i & (1 << 2))))
      r2 = (m - 2) / 2;
    else if ((i & (1 << 0)) || (i & (1 << 2)))
      r2 = (m - 1) / 2;
    else
      r2 = m / 2;
    long long sum = 0;
    for (int j = 0; j < 4; j++) {
      if (i & (1 << j)) sum += v[j];
    }
    for (long long t1 = 0; t1 <= r1; t1++) {
      for (long long t2 = 0; t2 <= r2; t2++) {
        if (sum + t1 * c1 + t2 * c2 == x) {
          string s1 = "", s2 = "";
          if ((i & (1 << 2)) || (i & (1 << 3))) s1 += 'C';
          if ((i & (1 << 0)) || (i & (1 << 1))) s2 += 'C';
          for (int j = 0; j < t1; j++) s1 += "AC";
          for (int j = 0; j < t2; j++) s2 += "AC";
          if ((i & (1 << 0)) || (i & (1 << 3))) s1 += 'A';
          if ((i & (1 << 1)) || (i & (1 << 2))) s2 += 'A';
          while (s1.size() < n) {
            if (!s1.empty() && s1[0] == 'C')
              s1.insert(s1.begin() + 1, 'X');
            else
              s1.insert(s1.begin(), 'X');
          }
          while (s2.size() < m) {
            if (!s2.empty() && s2[0] == 'C')
              s2.insert(s2.begin() + 1, 'X');
            else
              s2.insert(s2.begin(), 'X');
          }
          cout << s1 << "\n" << s2 << "\n";
          return 0;
        }
      }
    }
  }
  cout << "Happy new year!\n";
  return 0;
}