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>
#pragma comment(linker, "/STACK:60777216")
using namespace std;
long long fibo[55];
struct myS {
  long long n;
  int l, r;
};
int l, k, x, n, m;
char res[5][222];
bool found = false;
void attempt(int X, int L1, int R1, int y, int L2, int R2) {
  if ((X * 2 + L1 + R1 > n) || (y * 2 + L2 + R2 > m)) return;
  if (found) return;
  myS a, b, c, temp;
  a.n = X;
  a.l = L1;
  a.r = R1;
  b.n = y;
  b.l = L2;
  b.r = R2;
  long long tmp = 0;
  for (int i = (3), _b = (k); i <= _b; i++) {
    c.n = a.n + b.n;
    if (a.r == 1 && b.l == 1) c.n++;
    c.l = a.l;
    c.r = b.r;
    tmp = c.n;
    a = b;
    b = c;
    if (tmp > x) return;
  }
  if (tmp == x) {
    int last = 0;
    if (L1 == 1) {
      res[1][1] = 'C';
      last = 1;
    }
    for (int i = (1), _b = (X); i <= _b; i++) {
      res[1][++last] = 'A';
      res[1][++last] = 'C';
    }
    if (R1 == 1) {
      res[1][n] = 'A';
    }
    last = 0;
    if (L2 == 1) {
      res[2][1] = 'C';
      last++;
    }
    for (int i = (1), _b = (y); i <= _b; i++) {
      res[2][++last] = 'A';
      res[2][++last] = 'C';
    }
    if (R2 == 1) {
      res[2][m] = 'A';
    }
    found = true;
    for (int i = (1), _b = (n); i <= _b; i++) cout << res[1][i];
    cout << endl;
    for (int i = (1), _b = (m); i <= _b; i++) cout << res[2][i];
    return;
  }
}
int main() {
  scanf("%d", &(k));
  scanf("%d", &(x));
  scanf("%d", &(n));
  scanf("%d", &(m));
  for (int i = (1), _b = (111); i <= _b; i++) res[1][i] = res[2][i] = 'X';
  for (int i = (0), _b = (n / 2); i <= _b; i++)
    for (int j = (0), _b = (m / 2); j <= _b; j++)
      for (int L1 = (0), _b = (1); L1 <= _b; L1++)
        for (int R1 = (0), _b = (1); R1 <= _b; R1++)
          for (int L2 = (0), _b = (1); L2 <= _b; L2++)
            for (int R2 = (0), _b = (1); R2 <= _b; R2++)
              attempt(i, L1, R1, j, L2, R2);
  if (!found) cout << "Happy new year!";
  return 0;
}