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;
template <class T>
inline T max(T a, T b, T c) {
  return max(a, max(b, c));
}
template <class T>
inline T min(T a, T b, T c) {
  return min(a, min(b, c));
}
template <class T>
void debug(T a, T b) {
  for (; a != b; ++a) cerr << *a << ' ';
  cerr << endl;
}
template <class T>
T gcd(T a, T b) {
  return (b == (T)0 ? a : gcd(b, a % b));
}
template <class T>
T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}
template <class T>
T mathround(T x) {
  long long i64x = (long long)x;
  if (x < i64x + 0.5) return (T)i64x;
  return (T)i64x + 1;
}
template <class T>
bool isprime(T x) {
  int till = (T)sqrt(x + .0);
  if (x <= 1) return 0;
  if (x == 2) return 1;
  if (x % 2 == 0) return 0;
  for (int i = 3; i <= till; i += 2)
    if (x % i == 0) return 0;
  return 1;
}
int k;
long long x;
int n;
int m;
long long r[100][5];
char pos[3] = {'A', 'X', 'C'};
int main() {
  cin >> k;
  cin >> x;
  cin >> n;
  cin >> m;
  r[0][0] = 1;
  r[0][1] = 0;
  r[0][2] = 0;
  r[0][3] = 0;
  r[0][4] = 0;
  r[1][0] = 0;
  r[1][1] = 1;
  r[1][2] = 0;
  r[1][3] = 0;
  r[1][4] = 0;
  r[2][0] = 1;
  r[2][1] = 1;
  r[2][2] = 0;
  r[2][3] = 0;
  r[2][4] = 1;
  for (int i = 3; i <= 50; i++) {
    r[i][0] = r[i - 1][0] + r[i - 2][0];
    r[i][1] = r[i - 1][1] + r[i - 2][1];
    r[i][2] = r[i - 1][2] + r[i - 2][2] + (i % 2 == 1);
    r[i][3] = r[i - 1][3] + r[i - 2][3] + (i % 2 == 0);
    r[i][4] = r[i - 1][4] + r[i - 2][4];
  }
  k--;
  char A[n + 1];
  fill(A, A + n, 'X');
  A[n] = '\0';
  char B[m + 1];
  fill(B, B + m, 'X');
  B[m] = '\0';
  for (int a = 0; a <= 50; a++) {
    for (int b = 0; b <= 50; b++) {
      for (int birbas = 0; birbas < 3; birbas++) {
        for (int birson = 0; birson < 3; birson++) {
          for (int ikibas = 0; ikibas < 3; ikibas++) {
            for (int ikison = 0; ikison < 3; ikison++) {
              fill(A, A + n, 'X');
              fill(B, B + m, 'X');
              A[0] = pos[birbas];
              A[n - 1] = pos[birson];
              B[0] = pos[ikibas];
              B[m - 1] = pos[ikison];
              if (A[0] != pos[birbas] || A[n - 1] != pos[birson] ||
                  B[0] != pos[ikibas] || B[m - 1] != pos[ikison])
                continue;
              long long san = 0;
              san += r[k][0] * a;
              san += r[k][1] * b;
              san += r[k][2] * (B[m - 1] == 'A' && A[0] == 'C');
              san += r[k][3] * (B[m - 1] == 'A' && B[0] == 'C');
              san += r[k][4] * (A[n - 1] == 'A' && B[0] == 'C');
              if (san == x) {
                int rem;
                rem = a;
                for (int i = 0; i < n && rem > 0; i++) {
                  if (A[i] != 'X') continue;
                  char trans = 'A';
                  if (i > 0 && A[i - 1] == 'A') trans = 'C';
                  rem -= (trans == 'C');
                  A[i] = trans;
                }
                if (rem > 0) continue;
                rem = b;
                for (int i = 0; i < m && rem > 0; i++) {
                  if (B[i] != 'X') continue;
                  char trans = 'A';
                  if (i > 0 && B[i - 1] == 'A') trans = 'C';
                  rem -= (trans == 'C');
                  B[i] = trans;
                }
                if (rem > 0) continue;
                long long san2 = 0;
                san2 += r[k][0] * a;
                san2 += r[k][1] * b;
                san2 += r[k][2] * (B[m - 1] == 'A' && A[0] == 'C');
                san2 += r[k][3] * (B[m - 1] == 'A' && B[0] == 'C');
                san2 += r[k][4] * (A[n - 1] == 'A' && B[0] == 'C');
                if (san2 != x) continue;
                int cnt;
                cnt = 0;
                for (int i = 1; i < n; i++)
                  cnt += (A[i - 1] == 'A' && A[i] == 'C');
                if (cnt != a) continue;
                cnt = 0;
                for (int i = 1; i < m; i++)
                  cnt += (B[i - 1] == 'A' && B[i] == 'C');
                if (cnt != b) continue;
                cout << A << "\n";
                cout << B << "\n";
                return 0;
              }
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!";
  return EXIT_SUCCESS;
}