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;
long long n, k, fd, m, sum;
char c[3] = {'A', 'C', 'X'}, u;
pair<char, char> p, q;
bool f;
void bf(char a, char b, char c, char d, long long x, long long y) {
  int tmp1 = n, tmp2 = m;
  if (a == 'C' || a == 'X') {
    tmp1--;
  }
  if (b == 'A' || b == 'X') {
    tmp1--;
  }
  if (c == 'C' || c == 'X') {
    tmp2--;
  }
  if (d == 'A' || d == 'X') {
    tmp2--;
  }
  if (tmp1 / 2 >= x && tmp2 / 2 >= y) {
    if (n == 2) {
      if (a == 'A' && b == 'C' && x == 0) {
        return;
      }
    } else if (m == 2) {
      if (c == 'A' && d == 'C' && y == 0) {
        return;
      }
    }
    p.first = a, p.second = b, q.first = c, q.second = d;
    for (int i = 3; i <= k; i++) {
      sum = y;
      y += x;
      x = sum;
      if (p.second == 'A' && q.first == 'C') {
        y++;
      }
      u = p.first;
      p.first = q.first, p.second = q.second, q.first = u;
    }
    if (y == fd) {
      f = true;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> k >> fd >> n >> m;
  for (int i = 0; i <= n / 2; i++) {
    for (int j = 0; j <= m / 2; j++) {
      for (int l0 = 0; l0 <= 2; l0++) {
        for (int l1 = 0; l1 <= 2; l1++) {
          for (int l2 = 0; l2 <= 2; l2++) {
            for (int l3 = 0; l3 <= 2; l3++) {
              if (n == 1 && m == 1) {
                if (l2 == l3 && l0 == l1) {
                  bf(c[l0], c[l1], c[l2], c[l3], i, j);
                }
              } else if (m == 1) {
                if (l2 == l3) {
                  bf(c[l0], c[l1], c[l2], c[l3], i, j);
                }
              } else if (n == 1) {
                if (l0 == l1) {
                  bf(c[l0], c[l1], c[l2], c[l3], i, j);
                }
              } else {
                bf(c[l0], c[l1], c[l2], c[l3], i, j);
              }
              if (f) {
                for (int r = 0; r < n; r++) {
                  if (!r) {
                    cout << c[l0];
                    if (l0 == 1) {
                      f = false;
                    } else {
                      f = true;
                    }
                  } else if (r == n - 1) {
                    cout << c[l1];
                  } else if (i) {
                    cout << c[f];
                    if (f) {
                      i--;
                    }
                    f = !f;
                  } else {
                    cout << 'X';
                  }
                }
                cout << '\n';
                for (int r = 0; r < m; r++) {
                  if (!r) {
                    cout << c[l2];
                    if (l2 == 1) {
                      f = false;
                    } else {
                      f = true;
                    }
                  } else if (r == m - 1) {
                    cout << c[l3];
                  } else if (j) {
                    cout << c[f];
                    if (f) {
                      j--;
                    }
                    f = !f;
                  } else {
                    cout << 'X';
                  }
                }
                cout << '\n';
                return 0;
              }
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!" << '\n';
}