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 A = 1, C = 2, Z = 4, inf = 0x7fffffff / 2;
const char *str[] = {"X", "A", "C", "X", "X"};
struct Node {
  int l, r, x, y, b;
  Node() {}
};
int k, X, n, m;
int s1[2], s2[2], a, b;
bool isok(int len, int s1, int s2, int x) {
  if (len == 1) return x == 0 && s1 == s2;
  if (len == 2) return (s1 == A && s2 == C) == x;
  int current = 2;
  if (s1 == A) current = 1;
  while (x--) {
    if (current > len) return 0;
    current += 2;
  }
  return current <= len || (current == len + 1 && s2 == C);
}
int getNum() {
  Node x, y, temp;
  x.l = s1[0], x.r = s1[1], x.x = a, x.y = 0, x.b = 0;
  y.l = s2[0], y.r = s2[1], y.x = 0, y.y = b, y.b = 0;
  for (int i = 3; i <= k; i++) {
    temp.l = x.l, temp.r = y.r;
    temp.x = x.x + y.x;
    temp.y = x.y + y.y;
    temp.b = x.b + y.b;
    if (x.r == A && y.l == C) temp.b++;
    temp.x = min(temp.x, inf);
    temp.y = min(temp.y, inf);
    temp.b = min(temp.b, inf);
    x = y;
    y = temp;
  }
  return temp.x + temp.y + temp.b;
}
bool solve() {
  for (s1[0] = 1; s1[0] <= 4; s1[0]++)
    if (s1[0] != 3)
      for (s1[1] = 1; s1[1] <= 4; s1[1]++)
        if (s1[1] != 3)
          for (s2[0] = 1; s2[0] <= 4; s2[0]++)
            if (s2[0] != 3)
              for (s2[1] = 1; s2[1] <= 4; s2[1]++)
                if (s2[1] != 3)
                  for (a = 0; a <= n / 2; a++)
                    for (b = 0; b <= m / 2; b++) {
                      if (isok(n, s1[0], s1[1], a) &&
                          isok(m, s2[0], s2[1], b) && getNum() == X)
                        return 1;
                    }
  return 0;
}
void output(int len, int s1, int s2, int x) {
  if (len == 2) {
    printf("%s%s", str[s1], str[s2]);
    return;
  }
  int current = 2;
  if (s1 == A) current = 1;
  if (current != 1) printf("%s", str[s1]);
  while (x--) {
    current += 2;
    printf("AC");
  }
  for (int i = current; i < len; i++) printf("X");
  if (current <= len) printf("%s", str[s2]);
}
void output() {
  output(n, s1[0], s1[1], a);
  printf("\n");
  output(m, s2[0], s2[1], b);
}
int main() {
  cin >> k >> X >> n >> m;
  if (solve())
    output();
  else
    cout << "Happy new year!" << endl;
  return 0;
}