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;
const long double PI = acos(-1.0);
const long double EPS = 1e-9;
const int INF = 1e+9;
struct aaa {
  aaa() {}
  aaa(int l_, int r_, int cnt_) : l(l_), r(r_), cnt(cnt_) {}
  int l, r;
  long long cnt;
  aaa operator+(const aaa& rhs) {
    aaa res;
    res.cnt = cnt + rhs.cnt;
    if (r == 0 && rhs.l == 1) res.cnt++;
    res.l = l, res.r = rhs.r;
    return res;
  }
};
int k, x, n, m;
string s1, s2;
char ch[3] = {'A', 'C', 'X'};
bool isValid(int l1, int r1, int c1, int len) {
  if (len == 1) {
    if (l1 != r1 || c1 > 0)
      return false;
    else if (l1 == r1 || c1 == 0)
      return true;
  }
  if (len == 2) {
    if (l1 == 0 && r1 == 1 && c1 == 1)
      return true;
    else if (!(l1 == 0 && r1 == 1) && c1 == 0)
      return true;
    else
      return false;
  }
  if (len % 2) {
    if (c1 > len / 2)
      return false;
    else if (c1 == len / 2) {
      if (l1 == 0)
        return true;
      else if (r1 == 1)
        return true;
      else
        return false;
    } else
      return true;
  } else {
    if (c1 > len / 2)
      return false;
    else if (c1 == len / 2) {
      if (l1 == 0 && r1 == 1)
        return true;
      else
        return false;
    } else
      return true;
  }
}
string generate(aaa s, int len) {
  string res;
  if (s.l != 0) {
    res += ch[s.l];
  }
  for (int i = 0; i < (s.cnt); ++i) res += "AC";
  if ((int)(res).size() == 0) res += ch[s.l];
  int tmp = (int)(res).size();
  for (int i = 0; i < (len - 1 - tmp); ++i) {
    res += "X";
  }
  if ((int)(res).size() < len) res += ch[s.r];
  return res;
}
int main() {
  cin >> k >> x >> n >> m;
  for (int l1 = 0; l1 < (3); ++l1) {
    for (int r1 = 0; r1 < (3); ++r1) {
      for (int c1 = 0; c1 < (n / 2 + 1); ++c1) {
        for (int l2 = 0; l2 < (3); ++l2) {
          for (int r2 = 0; r2 < (3); ++r2) {
            for (int c2 = 0; c2 < (m / 2 + 1); ++c2) {
              if (l1 == 0 && r1 == 1 && l2 == 1 && r2 == 0 && c1 == 1 &&
                  c2 == 0)
                int g = 1;
              if (isValid(l1, r1, c1, n) && isValid(l2, r2, c2, m)) {
                aaa s1(l1, r1, c1);
                aaa s2(l2, r2, c2);
                aaa t1, t2;
                t1 = s1, t2 = s2;
                for (int step = 0; step < (k - 2); ++step) {
                  aaa tmp = s2;
                  s2 = s1 + s2;
                  s1 = tmp;
                }
                if (s2.cnt == x) {
                  cout << generate(t1, n) << endl;
                  cout << generate(t2, m);
                  return 0;
                }
              }
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!";
  return 0;
}