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 <typename T>
struct number_iterator : iterator<random_access_iterator_tag, T> {
  T v;
  number_iterator(T v) : v(v) {}
  operator T&() { return v; }
  T operator*() { return v; }
};
template <typename T>
struct number_range {
  T b, e;
  number_range(T b, T e) : b(b), e(e) {}
  number_iterator<T> begin() { return b; }
  number_iterator<T> end() { return e; }
};
template <typename T>
number_range<T> range(T b, T e) {
  return number_range<T>(b, e);
}
template <typename T>
number_range<T> range(T e) {
  return number_range<T>(0, e);
}
const int MAXK = 60;
int K, X, N, M;
long long c12[MAXK], c21[MAXK], c22[MAXK], c1[MAXK], c2[MAXK];
int start[MAXK], fin[MAXK];
string dp[103][3][3][52];
int main(int argc, char* argv[]) {
  if (argc > 1) freopen(argv[1], "r", stdin);
  if (argc > 2) freopen(argv[2], "w", stdout);
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> K >> X >> N >> M;
  string letters = "ABC";
  for (auto c : letters) {
    string s;
    s += c;
    dp[1][c - 'A'][c - 'A'][0] = s;
  }
  for (int i = 2; i <= max(N, M); ++i) {
    for (auto s1 : range(3))
      for (auto f1 : range(3))
        for (auto c : range(3))
          for (int k = 0; k <= i / 2; ++k) {
            if (!dp[i - 1][s1][f1][k].empty())
              dp[i][s1][c][k + (f1 == 0 && c == 2)] =
                  dp[i - 1][s1][f1][k] + (char)(c + 'A');
          }
  }
  c1[1] = 1;
  c2[2] = 1;
  start[1] = 1;
  fin[1] = 1;
  start[2] = 2;
  fin[2] = 2;
  for (int i = 3; i <= K; ++i) {
    c1[i] = c1[i - 2] + c1[i - 1];
    c2[i] = c2[i - 2] + c2[i - 1];
    start[i] = start[i - 2];
    fin[i] = fin[i - 1];
    c12[i] = c12[i - 2] + c12[i - 1] + (fin[i - 2] == 1 && start[i - 1] == 2);
    c21[i] = c21[i - 2] + c21[i - 1] + (fin[i - 2] == 2 && start[i - 1] == 1);
    c22[i] = c22[i - 2] + c22[i - 1] + (fin[i - 2] == 2 && start[i - 1] == 2);
  }
  for (char s1 : letters)
    for (char f1 : letters) {
      if (N == 1 && s1 != f1) continue;
      for (char s2 : letters)
        for (char f2 : letters) {
          if (M == 1 && s2 != f2) continue;
          for (int ac1 : range(N / 2 + 1))
            for (int ac2 : range(M / 2 + 1)) {
              if (N == 2 && s1 == 'A' && f1 == 'C' && ac1 != 1) continue;
              if (M == 2 && s2 == 'A' && f2 == 'C' && ac2 != 1) continue;
              long long ac = ac1 * (long long)c1[K] + ac2 * (long long)c2[K];
              ac += c12[K] * 1LL * (f1 == 'A' && s2 == 'C');
              ac += c21[K] * 1LL * (f2 == 'A' && s1 == 'C');
              ac += c22[K] * 1LL * (f2 == 'A' && s2 == 'C');
              if (ac == X) {
                if (!dp[N][s1 - 'A'][f1 - 'A'][ac1].empty() &&
                    !dp[M][s2 - 'A'][f2 - 'A'][ac2].empty()) {
                  cout << dp[N][s1 - 'A'][f1 - 'A'][ac1] << ('\n');
                  cout << dp[M][s2 - 'A'][f2 - 'A'][ac2] << ('\n');
                  return 0;
                }
              }
            }
        }
    }
  cout << "Happy new year!" << ('\n');
  return 0;
}