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 bool Up(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool Down(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
inline int getus() {
  int tmp, c;
  while (tmp = fgetc(stdin), tmp < '0' || tmp > '9')
    ;
  tmp -= '0';
  while (c = fgetc(stdin), '0' <= c && c <= '9') tmp = tmp * 10 + c - '0';
  return tmp;
}
inline int getint() {
  int tmp, c, flag;
  while (flag = fgetc(stdin), flag != '-' && (flag < '0' || flag > '9'))
    ;
  if (flag == '-')
    tmp = 0;
  else
    tmp = flag - '0';
  while (c = fgetc(stdin), '0' <= c && c <= '9') tmp = tmp * 10 + c - '0';
  return flag == '-' ? -tmp : tmp;
}
const int MAXN = 233;
int K, X, N, M;
long long s01[MAXN], s10[MAXN], s11[MAXN], s00[MAXN];
long long cs0[MAXN], cs1[MAXN];
long long fib[MAXN];
bool dp[MAXN][MAXN][3][3];
void output(int i, int j, int k, int l) {
  if (i > 1) {
    for (int lp = (0); lp <= (2); ++lp) {
      if (lp == 0 && l == 1) {
        if (dp[i - 1][j - 1][k][lp]) {
          output(i - 1, j - 1, k, lp);
          break;
        }
      } else {
        if (dp[i - 1][j][k][lp]) {
          output(i - 1, j, k, lp);
          break;
        }
      }
    }
  }
  if (l == 0)
    putchar('A');
  else if (l == 1)
    putchar('C');
  else
    putchar('B');
}
void solve() {
  memset(s01, 0, sizeof(s01));
  memset(s10, 0, sizeof(s10));
  memset(s00, 0, sizeof(s00));
  memset(s11, 0, sizeof(s11));
  fib[1] = fib[2] = 1;
  for (int i = (3); i <= (133); ++i) fib[i] = fib[i - 1] + fib[i - 2];
  cs0[1] = 1;
  cs0[2] = 0;
  cs1[1] = 0;
  cs1[2] = 1;
  for (int i = (3); i <= (133); ++i) {
    cs0[i] = cs0[i - 1] + cs0[i - 2];
    cs1[i] = cs1[i - 1] + cs1[i - 2];
  }
  s01[3] = 1;
  s10[3] = 0;
  for (int i = 4; i <= 133; ++i) {
    s01[i] = s01[i - 1] + s01[i - 2];
    s10[i] = s01[i];
    if (i & 1) --s10[i];
    s11[i] = fib[i] - 1 - s01[i] - s10[i];
  }
  memset(dp, 0, sizeof(dp));
  dp[1][0][0][0] = true;
  dp[1][0][1][1] = true;
  dp[1][0][2][2] = true;
  for (int i = (2); i <= (133); ++i)
    for (int j = (0); j <= (53); ++j)
      for (int k = (0); k <= (2); ++k)
        for (int l = (0); l <= (2); ++l) {
          bool &res = dp[i][j][k][l] = false;
          for (int lp = (0); lp <= (2); ++lp) {
            if (lp == 0 && l == 1)
              res = dp[i - 1][j - 1][k][lp];
            else
              res = dp[i - 1][j][k][lp];
            if (res) break;
          }
        }
  scanf("%d %d %d %d", &K, &X, &N, &M);
  for (int ma = (0); ma <= (100); ++ma)
    for (int la = (0); la <= (2); ++la)
      for (int ra = (0); ra <= (2); ++ra)
        if (dp[N][ma][la][ra])
          for (int mb = (0); mb <= (100); ++mb)
            for (int lb = (0); lb <= (2); ++lb)
              for (int rb = (0); rb <= (2); ++rb)
                if (dp[M][mb][lb][rb]) {
                  if (cs0[K] * ma > X) continue;
                  if (cs1[K] * mb > X) continue;
                  long long cnt = cs0[K] * ma + cs1[K] * mb;
                  if (cnt > X) continue;
                  cnt += s00[K] * int(ra == 0 && la == 1);
                  if (cnt > X) continue;
                  cnt += s11[K] * int(rb == 0 && lb == 1);
                  if (cnt > X) continue;
                  cnt += s10[K] * int(rb == 0 && la == 1);
                  if (cnt > X) continue;
                  cnt += s01[K] * int(ra == 0 && lb == 1);
                  if (cnt > X) continue;
                  if (cnt == X) {
                    output(N, ma, la, ra);
                    puts("");
                    output(M, mb, lb, rb);
                    puts("");
                    return;
                  }
                }
  puts("Happy new year!");
}
int main() {
  solve();
  return 0;
}