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 <class T>
typename T::value_type arr_sum(const T& v, int n) {
  typename T::value_type sum = 0;
  for (int i = (0); i < (n); ++i) sum += v[i];
  return sum;
}
struct Sync_stdio {
  Sync_stdio() {
    cin.tie(NULL);
    ios_base::sync_with_stdio(false);
  }
} _sync_stdio;
int xx, yy, n, m;
char ff1, ll1, ff2, ll2;
void print() {
  string s1(n, 'B');
  string s2(m, 'B');
  int t1 = 1, t2 = 1;
  if (ff1 == 'A') {
    t1 = 0;
  }
  if (ff2 == 'A') {
    t2 = 0;
  }
  s2[0] = ff1;
  s2[m - 1] = ll1;
  s1[0] = ff2;
  s1[n - 1] = ll2;
  for (int i = (0); i < (yy); ++i) {
    s2[t1 + 2 * i] = 'A';
    s2[t1 + 1 + 2 * i] = 'C';
  }
  for (int i = (0); i < (xx); ++i) {
    s1[t2 + 2 * i] = 'A';
    s1[t2 + 1 + 2 * i] = 'C';
  }
  cout << s1 << "\n" << s2 << "\n";
  exit(0);
}
void fib(long long x, int k, long long ac1, long long ac2, char f1, char l1,
         char f2, char l2) {
  if (ac1 == x && k == 0) {
    print();
  }
  if (k == 0 || ac1 >= 2000000000) {
    return;
  }
  long long newac = ac1 + ac2;
  if (l2 == 'A' && f1 == 'C') {
    ++newac;
  }
  fib(x, k - 1, newac, ac1, f2, l1, f1, l1);
}
int check(int n, int m, int i, int j, char i1, char i2, char i3, char i4) {
  if (m == 1 && i1 != i2) {
    return 0;
  }
  if (n == 1 && i3 != i4) {
    return 0;
  }
  int t1 = 0;
  int t2 = 0;
  int u1 = m;
  int u2 = n;
  if (i1 != 'A') {
    ++t1;
  }
  if (i3 != 'A') {
    ++t2;
  }
  if (i2 != 'C') {
    --u1;
  }
  if (i4 != 'C') {
    --u2;
  }
  if ((u2 - t2) / 2 < i) {
    return 0;
  }
  if ((u1 - t1) / 2 < j) {
    return 0;
  }
  return 1;
}
int main() {
  int k, x;
  cin >> k >> x >> n >> m;
  for (int i = (0); i < (n / 2 + 1); ++i) {
    for (int j = (0); j < (m / 2 + 1); ++j) {
      for (int i1 = ('A'); i1 < ('D'); ++i1) {
        for (int i2 = ('A'); i2 < ('D'); ++i2) {
          for (int i3 = ('A'); i3 < ('D'); ++i3) {
            for (int i4 = ('A'); i4 < ('D'); ++i4) {
              if (check(n, m, i, j, i1, i2, i3, i4)) {
                xx = i;
                yy = j;
                ff1 = i1;
                ll1 = i2;
                ff2 = i3;
                ll2 = i4;
                fib(x, k - 2, j, i, i1, i2, i3, i4);
              }
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!";
}