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 = 108;
long long w, x, n, nn, m, mm;
pair<pair<int, int>, long long> a[N];
char b[N], c[N];
int main(void) {
  long long i, j, l1, l2, r1, r2, p, p1, p2;
  cin >> w >> x >> n >> m;
  nn = n + (n == 1);
  mm = m + (m == 1);
  for (p1 = 0; p1 * 2 <= n; p1++)
    for (p2 = 0; p2 * 2 <= m; p2++)
      for (p = 0; p < 81; p++) {
        l1 = p / 27;
        r1 = p % 27 / 9;
        l2 = p % 9 / 3;
        r2 = p % 3;
        if (n == 1 && l1 != r1) continue;
        if (m == 1 && l2 != r2) continue;
        if (n == 2 && p1 == 0 && l1 == 0 && r1 == 1) continue;
        if (m == 2 && p2 == 0 && l2 == 0 && r2 == 1) continue;
        if (p1 * 2 == n && !(l1 == 0 && r1 == 1)) continue;
        if (p2 * 2 == m && !(l2 == 0 && r2 == 1)) continue;
        if (p1 && p1 * 2 + 1 == n && !(l1 == 0 || r1 == 1)) continue;
        if (p2 && p2 * 2 + 1 == m && !(l2 == 0 || r2 == 1)) continue;
        a[1].first.first = l1;
        a[1].first.second = r1;
        a[1].second = p1;
        a[2].first.first = l2;
        a[2].first.second = r2;
        a[2].second = p2;
        for (i = 3; i <= w; i++) {
          a[i].first.first = a[i - 2].first.first;
          a[i].first.second = a[i - 1].first.second;
          a[i].second =
              a[i - 2].second + a[i - 1].second +
              (a[i - 2].first.second == 0 && a[i - 1].first.first == 1);
          if (a[i].second > x) break;
        }
        if (i <= w || a[w].second != x) continue;
        b[1] = l1 == 0 ? 'A' : (l1 == 1 ? 'C' : 'Z');
        b[n] = r1 == 0 ? 'A' : (r1 == 1 ? 'C' : 'Z');
        c[1] = l2 == 0 ? 'A' : (l2 == 1 ? 'C' : 'Z');
        c[m] = r2 == 0 ? 'A' : (r2 == 1 ? 'C' : 'Z');
        b[n + 1] = c[m + 1] = 0;
        if (p1) {
          for (i = (b[1] == 'A' ? 1 : 2), j = 1; j <= p1; j++, i += 2) {
            b[i] = 'A';
            b[i + 1] = 'C';
          }
        } else
          i = 2;
        for (; i < n; i++) b[i] = 'Z';
        if (p2) {
          for (i = (c[1] == 'A' ? 1 : 2), j = 1; j <= p2; j++, i += 2) {
            c[i] = 'A';
            c[i + 1] = 'C';
          }
        } else
          i = 2;
        for (; i < m; i++) c[i] = 'Z';
        printf("%s\n%s", b + 1, c + 1);
        return 0;
      }
  printf("Happy new year!");
  return 0;
}