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, lastnum[4][4], num[4][4], x1 = 1, x2 = 0, xx1 = 0,
                                                xx2 = 1, tmp[4][4];
void copy(long long to[][4], long long from[][4]) {
  for (long long i = 1; i <= 2; i++)
    for (long long j = 1; j <= 2; j++) to[i][j] = from[i][j];
}
void add(long long to[][4], long long from[][4]) {
  for (long long i = 1; i <= 2; i++)
    for (long long j = 1; j <= 2; j++) to[i][j] += from[i][j];
}
long long ac_num(char* s) {
  long long cnt = 0, len = strlen(s);
  for (long long i = 0; i < len; i++) {
    if (s[i] == 'A' && s[i] == 'C') cnt++;
  }
  return cnt;
}
bool can(long long num1, long long num2, long long suf1, long long suf2,
         long long pre1, long long pre2) {
  if (xx1 * num1 + xx2 * num2 + num[1][2] * (suf1 == 'A' && pre2 == 'C') +
          num[2][2] * (suf2 == 'A' && pre2 == 'C') +
          num[2][1] * (suf2 == 'A' && pre1 == 'C') ==
      x)
    return true;
  else
    return false;
}
bool print(long long num1, long long num2, char suf1, char suf2, char pre1,
           char pre2) {
  if (n == 1 && pre1 != suf1) return false;
  if (m == 1 && pre2 != suf2) return false;
  if (n % 2 == 0) {
    if (num1 == n / 2)
      if (!(suf1 == 'C' && pre1 == 'A')) return false;
  } else if (num1 == n / 2)
    if ((!(pre1 == 'A' || suf1 == 'C')) && (n != 1)) return false;
  if (m % 2 == 0) {
    if (num2 == m / 2)
      if (!(suf2 == 'C' && pre2 == 'A')) return false;
  } else if (num2 == m / 2)
    if ((!(pre2 == 'A' || suf2 == 'C')) && (m != 1)) return false;
  if (n % 2 == 0) {
    if (num1 == n / 2) {
      for (long long i = 1; i <= num1; i++) cout << "AC";
    } else {
      cout << pre1;
      for (long long i = 1; i <= num1; i++) cout << "AC";
      for (long long i = 1; i <= n - num1 * 2 - 2; i++) cout << "B";
      cout << suf1;
    }
  } else {
    if (num1 == n / 2) {
      if (n == 1)
        cout << pre1;
      else {
        if (pre1 == 'A') {
          for (long long i = 1; i <= num1; i++) cout << "AC";
          cout << suf1;
        } else if (suf1 == 'C') {
          cout << pre1;
          for (long long i = 1; i <= num1; i++) cout << "AC";
        }
      }
    } else {
      cout << pre1;
      for (long long i = 1; i <= num1; i++) cout << "AC";
      for (long long i = 1; i <= n - num1 * 2 - 2; i++) cout << "B";
      cout << suf1;
    }
  }
  cout << endl;
  if (m % 2 == 0) {
    if (num2 == m / 2) {
      for (long long i = 1; i <= num2; i++) cout << "AC";
    } else {
      cout << pre2;
      for (long long i = 1; i <= num2; i++) cout << "AC";
      for (long long i = 1; i <= m - num2 * 2 - 2; i++) cout << "B";
      cout << suf2;
    }
  } else {
    if (num2 == m / 2) {
      if (m == 1)
        cout << pre2;
      else if (pre2 == 'A') {
        for (long long i = 1; i <= num2; i++) cout << "AC";
        cout << suf2;
      } else if (suf2 == 'C') {
        cout << pre2;
        for (long long i = 1; i <= num2; i++) cout << "AC";
      }
    } else {
      cout << pre2;
      for (long long i = 1; i <= num2 - 1; i++) cout << "AC";
      for (long long i = 1; i <= m - num2 * 2 - 2; i++) cout << "B";
      cout << suf2;
    }
  }
  cout << endl;
  return true;
}
int main() {
  cin >> k >> x >> n >> m;
  for (long long i = 3; i <= k; i++) {
    long long xx1tmp = xx1, xx2tmp = xx2;
    xx1 += x1;
    xx2 += x2;
    x1 = xx1tmp, x2 = xx2tmp;
    copy(tmp, num);
    add(num, lastnum);
    copy(lastnum, tmp);
    if (i == 3) num[1][2] = 1;
    if (i >= 4 && i % 2 == 0)
      num[2][1]++;
    else if (i >= 4)
      num[2][2]++;
  }
  for (long long num1 = 0; num1 <= (n / 2); num1++)
    for (long long num2 = 0; num2 <= (m / 2); num2++)
      for (long long suf1 = 'A'; suf1 <= 'C'; suf1++)
        for (long long suf2 = 'A'; suf2 <= 'C'; suf2++)
          for (long long pre1 = 'A'; pre1 <= 'C'; pre1++)
            for (long long pre2 = 'A'; pre2 <= 'C'; pre2++)
              if (can(num1, num2, suf1, suf2, pre1, pre2)) {
                if (print(num1, num2, suf1, suf2, pre1, pre2)) {
                  return 0;
                }
              }
  cout << "Happy new year!" << endl;
}