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;
int k, x, m, n;
struct T {
  long long v;
  int x, y;
};
T dp[52];
void Print(int i, int p, int q, int j, int g, int h) {
  string a = "", b = "";
  for (int t = 1; t <= i; t++) a += "AC";
  while ((int)a.length() < n - 2) a += "X";
  if (p == 1) a = "C" + a;
  if (q == 1) a = a + "A";
  if (p == 0) {
    if (a.length() < n) a = "X" + a;
  }
  if (q == 0) {
    if (a.length() < n) a = a + "X";
  }
  for (int t = 1; t <= j; t++) b += "AC";
  while ((int)b.length() < m - 2) b += "X";
  if (g == 1) b = "C" + b;
  if (h == 1) b = b + "A";
  if (g == 0) {
    if (b.length() < m) b = "X" + b;
  }
  if (h == 0) {
    if (b.length() < m) b = b + "X";
  }
  cout << a << '\n' << b;
}
void Enter() {
  cin >> k >> x >> n >> m;
  for (int i = 0; i <= n / 2; i++)
    for (int j = 0; j <= m / 2; j++)
      for (int p = 0; p <= 1; p++)
        for (int q = 0; q <= 1; q++) {
          if (i * 2 + p + q > n) break;
          for (int g = 0; g <= 1; g++)
            for (int h = 0; h <= 1; h++) {
              if (j * 2 + g + h > m) break;
              dp[1] = {i, p, q};
              dp[2] = {j, g, h};
              for (int t = 3; t <= k; t++) {
                dp[t].v = dp[t - 2].v + dp[t - 1].v;
                if (dp[t - 2].y == 1 && dp[t - 1].x == 1) dp[t].v++;
                dp[t].x = dp[t - 2].x;
                dp[t].y = dp[t - 1].y;
              }
              if (dp[k].v == x) {
                Print(i, p, q, j, g, h);
                return;
              }
            }
        }
  cout << "Happy new year!";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  Enter();
}