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;
void E(){};
template <class A, class... B>
void E(A a, B... b) {
  cerr << ' ' << a;
  E(b...);
}
const int K = 64;
int64_t n1[K], n2[K], n11[K], n12[K], n21[K], n22[K];
const int N = 128;
char s1[N], s2[N];
bool good(char *s, int l) { return s[l] == 'A' && s[l + 1] == 'C'; }
int cnt(char *s, int l) {
  int ans = 0;
  for (int i = 1; i < l; ++i)
    if (good(s, i - 1)) ++ans;
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  int k, x, n, m;
  cin >> k >> x >> n >> m;
  n1[1] = 1;
  n1[2] = 0;
  n2[1] = 0;
  n2[2] = 1;
  n11[1] = n11[2] = n22[1] = n22[2] = 0;
  n12[1] = n12[2] = n21[1] = n21[2] = 0;
  for (int i = 3; i <= k; ++i) {
    n1[i] = n1[i - 2] + n1[i - 1];
    n2[i] = n2[i - 2] + n2[i - 1];
    n11[i] = n11[i - 2] + n11[i - 1];
    n12[i] = n12[i - 2] + n12[i - 1];
    n21[i] = n21[i - 2] + n21[i - 1];
    n22[i] = n22[i - 2] + n22[i - 1];
    if (i == 3)
      ++n12[i];
    else if ((i & 1) == 0)
      ++n21[i];
    else
      ++n22[i];
  }
  for (char b1 = 'A'; b1 <= 'C'; ++b1) {
    for (char e1 = 'A'; e1 <= 'C'; ++e1) {
      if (n == 1 && b1 != e1) continue;
      for (char b2 = 'A'; b2 <= 'C'; ++b2) {
        for (char e2 = 'A'; e2 <= 'C'; ++e2) {
          if (m == 1 && b2 != e2) continue;
          int val11 = (e1 == 'A') && (b1 == 'C');
          int val12 = (e1 == 'A') && (b2 == 'C');
          int val21 = (e2 == 'A') && (b1 == 'C');
          int val22 = (e2 == 'A') && (b2 == 'C');
          fill(s1, s1 + n, 'B');
          s1[0] = b1;
          s1[n - 1] = e1;
          int val1 = cnt(s1, n);
          for (int i1 = 1;; ++i1) {
            fill(s2, s2 + m, 'B');
            s2[0] = b2;
            s2[m - 1] = e2;
            int val2 = cnt(s2, m);
            for (int i2 = 1;; ++i2) {
              if (n1[k] * val1 + n2[k] * val2 + n11[k] * val11 +
                      n12[k] * val12 + n21[k] * val21 + n22[k] * val22 ==
                  x) {
                printf("%s\n%s\n", s1, s2);
                return 0;
              }
              if (i2 >= m - 1) break;
              s2[i2] = "AC"[(i2 + (b2 == 'A') + 1) % 2];
              if (good(s2, i2 - 1)) ++val2;
              if (good(s2, i2)) ++val2;
            }
            if (i1 >= n - 1) break;
            s1[i1] = "AC"[(i1 + (b1 == 'A') + 1) % 2];
            if (good(s1, i1 - 1)) ++val1;
            if (good(s1, i1)) ++val1;
          }
        }
      }
    }
  }
  printf("Happy new year!");
  return 0;
}