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 long K = 60, N = 100;
long long k, x, n, m;
char pre[K], suf[K];
long long ans[K];
string s0, s1;
long long pos = 0;
signed main() {
  cin >> k >> x >> n >> m;
  for (long long mask = 0; mask < 81; mask++) {
    long long tmp = mask;
    for (long long i = 0; i < 4; i++) {
      char c;
      if (tmp % 3 == 0)
        c = 'A';
      else if (tmp % 3 == 1)
        c = 'B';
      else
        c = 'C';
      tmp /= 3;
      if (i == 0)
        pre[0] = c;
      else if (i == 1)
        suf[0] = c;
      else if (i == 2)
        pre[1] = c;
      else if (i == 3)
        suf[1] = c;
    }
    if (n == 1 && pre[0] != suf[0]) continue;
    if (m == 1 && pre[1] != suf[1]) continue;
    long long mn_0 = 0, mx_0;
    if (pre[0] == 'A') {
      if (suf[0] == 'A' || suf[0] == 'B')
        mx_0 = (n - 1) / 2;
      else {
        if (n == 2) mn_0 = 1;
        mx_0 = n / 2;
      }
    } else if (suf[0] == 'C')
      mx_0 = (n - 1) / 2;
    else
      mx_0 = (n - 2) / 2;
    long long mn_1 = 0, mx_1;
    if (pre[1] == 'A') {
      if (suf[1] == 'A' || suf[1] == 'B')
        mx_1 = (m - 1) / 2;
      else {
        if (m == 2) mn_1 = 1;
        mx_1 = m / 2;
      }
    } else if (suf[1] == 'C')
      mx_1 = (m - 1) / 2;
    else
      mx_1 = (m - 2) / 2;
    for (long long i = mn_0; i <= mx_0; i++) {
      ans[0] = i;
      for (long long j = mn_1; j <= mx_1; j++) {
        ans[1] = j;
        bool ngu = 0;
        for (long long t = 2; t < k && !ngu; t++) {
          pre[t] = pre[t - 2];
          suf[t] = suf[t - 1];
          ans[t] = ans[t - 2] + ans[t - 1] +
                   (suf[t - 2] == 'A' && pre[t - 1] == 'C');
          if (ans[t] > x) ngu = 1;
        }
        if (ans[k - 1] == x) {
          if (pre[0] != 'A') s0 += pre[0];
          for (long long num = 0; num < i; num++) {
            s0 += 'A';
            s0 += 'C';
          }
          while (s0.size() < n) s0 += suf[0];
          if (pre[1] != 'A') s1 += pre[1];
          for (long long num = 0; num < j; num++) {
            s1 += 'A';
            s1 += 'C';
          }
          while (s1.size() < m) s1 += suf[1];
          return cout << s0 << '\n' << s1, 0;
        }
      }
    }
  }
  cout << "Happy new year!";
}