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 int N = 100 + 10;
const int K = 50 + 3;
long long int pluss[81][K];
int aval[81][K], akhar[81][K];
long long int fib[N / 2][N / 2][K];
int n, m, k, x;
char good(int p) {
  if (p == 0) return 'A';
  if (p == 2) return 'B';
  return 'C';
}
int main() {
  cin >> k >> x >> n >> m;
  int help;
  k--;
  for (int i = 0; i < 81; ++i) {
    help = i;
    akhar[i][1] = help % 3;
    help /= 3;
    aval[i][1] = help % 3;
    help /= 3;
    akhar[i][0] = help % 3;
    help /= 3;
    aval[i][0] = help % 3;
    if (m == 2)
      if (aval[i][1] == 0 and akhar[i][1] == 1) pluss[i][1]++;
    if (n == 2)
      if (aval[i][0] == 0 and akhar[i][0] == 1) pluss[i][0]++;
  }
  for (int i = 0; i < 81; ++i)
    for (int j = 2; j < K; ++j) {
      pluss[i][j] =
          (pluss[i][j - 2] + pluss[i][j - 1]) +
          (long long int)(((akhar[i][j - 2] == 0) and (aval[i][j - 1] == 1)));
      aval[i][j] = aval[i][j - 2];
      akhar[i][j] = akhar[i][j - 1];
    }
  for (int i = 0; i < N / 2; ++i)
    for (int j = 0; j < N / 2; ++j) {
      fib[i][j][0] = i;
      fib[i][j][1] = j;
      for (int p = 2; p < k + 1; ++p)
        fib[i][j][p] = fib[i][j][p - 2] + fib[i][j][p - 1];
    }
  int last[2];
  int first;
  int halat[2];
  int now[2];
  halat[0] = n;
  halat[1] = m;
  vector<int> base;
  for (int t = 0; t < 81; ++t) {
    base.clear();
    help = t;
    base.push_back(help % 3);
    help /= 3;
    base.push_back(help % 3);
    help /= 3;
    base.push_back(help % 3);
    help /= 3;
    base.push_back(help % 3);
    swap(base[0], base[2]);
    swap(base[1], base[3]);
    if (n == 1)
      if (base[0] != base[1]) continue;
    if (m == 1)
      if (base[2] != base[3]) continue;
    for (int o = 0; o < 2; ++o) {
      last[o] = max(1, halat[o] / 2);
      if (halat[o] == 1 or halat[o] == 2) continue;
      first = 2 * o;
      if (halat[o] == 3) {
        if (base[first + 1] == 0 or base[first] == 1) {
          last[o] = 2;
        }
        continue;
      }
      if ((base[first] == 1) and (base[first + 1] == 0)) {
        last[o] = 3 + (halat[o] - 4) / 2;
        continue;
      }
      if ((base[first] == 1) or (base[first + 1] == 0))
        last[o] = 2 + ((halat[o] - 3) / 2);
    }
    for (int i = 0; i < last[0]; ++i)
      for (int j = 0; j < last[1]; ++j) {
        now[0] = i;
        now[1] = j;
        if (fib[i][j][k] + pluss[t][k] != x) continue;
        for (int o = 0; o < 2; ++o) {
          first = 2 * o;
          if (halat[o] == 1) {
            cout << good(base[first]) << endl;
            continue;
          }
          if (halat[o] == 2) {
            cout << good(base[first + 1]) << good(base[first]) << endl;
            continue;
          }
          help = now[o];
          if (help == 0) {
            cout << good(base[first + 1]);
            for (int q = 0; q < halat[o] - 2; ++q) cout << 'B';
            cout << good(base[first]) << endl;
            continue;
          }
          if (base[first + 1] == 0) {
            for (int q = 0; q < help; ++q) cout << "AC";
            if (help == (halat[o] + 1) / 2) {
              cout << endl;
              continue;
            }
            for (int q = 0; q < halat[o] - (2 * help) - 1; ++q) cout << 'B';
            cout << good(base[first]) << endl;
            continue;
          }
          if (base[first] == 1) {
            cout << good(base[first + 1]);
            for (int q = 0; q < help - 1; ++q) cout << "AC";
            for (int q = 0; q < halat[o] - (2 * (help - 1)) - 3; ++q)
              cout << 'B';
            cout << "AC";
            cout << endl;
            ;
            continue;
          }
          cout << good(base[first + 1]);
          for (int q = 0; q < help; ++q) cout << "AC";
          for (int q = 0; q < halat[o] - (2 * (help + 1)); ++q) cout << 'B';
          cout << good(base[first]);
          cout << endl;
        }
        return 0;
      }
  }
  cout << "Happy new year!";
}