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 kk, x, n, m;
string s;
void getans(char c, int l, char c1, char c2, int l1, char c3) {
  string a, b;
  a.resize(n);
  b.resize(m);
  for (int i = 0; i < n; i++) {
    a[i] = 'B';
  }
  for (int i = 0; i < m; i++) {
    b[i] = 'B';
  }
  a[0] = c;
  a[n - 1] = c1;
  b[0] = c2;
  b[m - 1] = c3;
  for (int i = 1; i < n - 1; i++) {
    if (a[i - 1] == 'A' && l > 0 && a[i] == 'B') {
      a[i] = 'C';
      l--;
    }
    if (l > 0 && a[i] == 'B' && a[i + 1] == 'C') {
      a[i] = 'A';
      l--;
    }
    if (a[i] == 'B' && a[i + 1] == 'B' && l > 0) {
      a[i] = 'A';
      a[i + 1] = 'C';
      l--;
    }
  }
  for (int i = 1; i < m - 1; i++) {
    if (b[i - 1] == 'A' && l > 0 && b[i] == 'B') {
      b[i] = 'C';
      l1--;
    }
    if (l > 0 && b[i] == 'B' && b[i + 1] == 'C') {
      b[i] = 'A';
      l1--;
    }
    if (b[i] == 'B' && b[i + 1] == 'B' && l1 > 0) {
      b[i] = 'A';
      b[i + 1] = 'C';
      l1--;
    }
  }
  if (n == 2 && a == "AC") {
    l--;
  }
  if (m == 2 && b == "AC") {
    l1--;
  }
  if (l == 0 && l1 == 0) {
    cout << a << endl;
    cout << b << endl;
    exit(0);
  }
}
int main() {
  cin >> kk >> x >> n >> m;
  s = "ABC";
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      for (int k = 0; k < 3; k++) {
        for (int g = 0; g < 3; g++) {
          for (int t = 0; t <= n / 2; t++) {
            for (int t1 = 0; t1 <= m / 2; t1++) {
              if (n == 1 && i != j) {
                continue;
              }
              if (m == 1 && k != g) {
                continue;
              }
              if (kk == 1 && x == t) {
                getans(s[i], t, s[j], s[k], t1, s[g]);
              }
              if (kk == 2 && x == t1) {
                getans(s[i], t, s[j], s[k], t1, s[g]);
              }
              int i1 = i, j1 = j, k1 = k, g1 = g;
              long long tt = t, tt1 = t1;
              for (int l = 3; l <= kk; l++) {
                int c = 0;
                if (j1 == 0 && k1 == 2) {
                  c = 1;
                }
                int i2 = i1;
                i1 = k1;
                j1 = g1;
                int tt2 = tt;
                tt = tt1;
                tt1 = tt2 + tt1 + c;
                k1 = i2;
              }
              if (tt1 == x) {
                getans(s[i], t, s[j], s[k], t1, s[g]);
              }
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!" << endl;
  return 0;
}