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, n, m, ans1, ans2, k1, k2, k3, k4, yes;
string s1, s2;
void solve2(int sum1, int sum2, vector<int> ok) {
  if (ok[0]) s1 += 'C';
  if (ok[2]) s2 += 'C';
  for (int i = 0; i < sum1; i++) s1 += "AC";
  for (int i = 0; i < sum2; i++) s2 += "AC";
  if (ok[1]) {
    while (s1.length() < n - 1) s1 += 'B';
    s1 += 'A';
  } else {
    while (s1.length() < n) s1 += 'B';
  }
  if (ok[3]) {
    while (s2.length() < m - 1) s2 += 'B';
    s2 += 'A';
  } else {
    while (s2.length() < m) s2 += 'B';
  }
}
void ch(int sum1, int sum2, vector<int> ok) {
  long long last1 = sum2;
  long long last2 = sum1;
  long long temp = last2;
  last2 += last1;
  if (ok[1] && ok[2]) last2++;
  for (int i = 4; i <= k; i++) {
    temp = last1;
    last1 = last2;
    last2 += temp;
    if (i % 2 == 0) {
      if (ok[3] && ok[0]) last2++;
    } else {
      if (ok[2] && ok[3]) last2++;
    }
    if (last2 > x) return;
  }
  if (last2 == x) {
    yes = 1;
    solve2(sum1, sum2, ok);
  }
}
void solve(int id, int sum1, int sum2, vector<int> ok) {
  if (id == 0) {
    for (int i = 0; i <= (n / 2); i++) {
      if (i * 2 <= n - 2) {
        solve(id + 1, i, sum2, ok);
        ok[0] = 1;
        solve(id + 1, i, sum2, ok);
        ok[0] = 0;
        ok[1] = 1;
        solve(id + 1, i, sum2, ok);
        ok[0] = 1;
        solve(id + 1, i, sum2, ok);
        ok[0] = 0, ok[1] = 0;
      } else if (i * 2 == n - 1) {
        solve(id + 1, i, sum2, ok);
        ok[0] = 1;
        solve(id + 1, i, sum2, ok);
        ok[0] = 0;
        ok[1] = 1;
        solve(id + 1, i, sum2, ok);
        ok[1] = 0;
      } else if (i * 2 == n) {
        solve(id + 1, i, sum2, ok);
      }
    }
  }
  if (id == 1) {
    for (int i = 0; i <= (m / 2); i++) {
      if (i * 2 <= m - 2) {
        solve(id + 1, sum1, i, ok);
        ok[2] = 1;
        solve(id + 1, sum1, i, ok);
        ok[2] = 0;
        ok[3] = 1;
        solve(id + 1, sum1, i, ok);
        ok[2] = 1;
        solve(id + 1, sum1, i, ok);
        ok[2] = 0, ok[3] = 0;
      } else if (i * 2 == m - 1) {
        solve(id + 1, sum1, i, ok);
        ok[2] = 1;
        solve(id + 1, sum1, i, ok);
        ok[2] = 0;
        ok[3] = 1;
        solve(id + 1, sum1, i, ok);
        ok[3] = 0;
      } else if (i * 2 == m) {
        solve(id + 1, sum1, i, ok);
      }
    }
  }
  if (id == 2) {
    if (!yes) {
      ch(sum1, sum2, ok);
    }
  }
}
int main() {
  cin >> k >> x >> n >> m;
  vector<int> v;
  v.resize(4);
  for (int i = 0; i < 4; i++) v[i] = 0;
  solve(0, 0, 0, v);
  if (yes) {
    cout << s1 << "\n" << s2 << endl;
  } else {
    cout << "Happy new year!";
  }
}