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;
const int MAXN = 1e4 + 5;
const double EPS = 1e-9;
const int INF = 1000000 + 5;
const int MAXN2 = 1000 + 5;
int f[MAXN], s[MAXN];
long long cnt[MAXN][3][3];
long long cnt2[MAXN][2];
char p[3] = {'A', 'B', 'C'};
char ls[3][3];
long long getCnt(int i, long long n) {
  long long m1 = 0;
  if (ls[i][1] == 'A') {
    if (n & 1)
      m1 = n / 2;
    else {
      if (ls[i][2] == 'C')
        m1 = n / 2;
      else
        m1 = n / 2 - 1;
    }
  } else {
    if (n & 1) {
      if (ls[i][2] == 'C')
        m1 = n / 2;
      else
        m1 = n / 2 - 1;
    } else {
      m1 = n / 2 - 1;
    }
  }
  return m1;
}
char ss[3][MAXN];
bool isGood(int v, int n, char f, char l, long long k) {
  if (!k && n == 2 && f == 'A' && l == 'C') {
    return false;
  }
  ss[v][0] = f;
  int i;
  for (i = 1; i < n - 1; i++) {
    if (ss[v][i - 1] == 'A') {
      if (k) {
        k--;
        ss[v][i] = 'C';
      } else {
        ss[v][i] = 'B';
      }
    } else {
      if (k) {
        ss[v][i] = 'A';
      } else {
        ss[v][i] = 'B';
      }
    }
  }
  return true;
}
int main() {
  int k, n, m;
  long long x;
  cin >> k >> x >> n >> m;
  f[1] = 1;
  f[2] = 2;
  s[1] = 1;
  s[2] = 2;
  cnt2[1][1] = 1;
  cnt2[2][2] = 1;
  for (int i = 3; i <= k; i++) {
    cnt2[i][1] = cnt2[i - 1][1] + cnt2[i - 2][1];
    cnt2[i][2] = cnt2[i - 1][2] + cnt2[i - 2][2];
    for (int j = 1; j < 3; j++) {
      for (int h = 1; h < 3; h++) {
        cnt[i][j][h] = cnt[i - 1][j][h] + cnt[i - 2][j][h];
      }
    }
    if (f[i - 1] == 1) {
      if (s[i - 2] == 1) {
        cnt[i][1][1]++;
      } else {
        cnt[i][2][1]++;
      }
    } else {
      if (s[i - 2] == 1) {
        cnt[i][1][2]++;
      } else {
        cnt[i][2][2]++;
      }
    }
    f[i] = f[i - 2];
    s[i] = s[i - 1];
  }
  long long t;
  long long m1, m2, xx;
  for (int i = 0; i < 3; i++) {
    for (int j = 0; j < 3; j++) {
      for (int i2 = 0; i2 < 3; i2++) {
        for (int j2 = 0; j2 < 3; j2++) {
          ls[1][1] = p[i];
          ls[1][2] = p[j];
          ls[2][1] = p[i2];
          ls[2][2] = p[j2];
          if (n == 1) ls[1][2] = ls[1][1];
          if (m == 1) ls[2][2] = ls[2][1];
          t = 0;
          for (int k1 = 1; k1 < 3; k1++) {
            for (int k2 = 1; k2 < 3; k2++) {
              if (ls[k1][2] == 'A' && ls[k2][1] == 'C') {
                t += cnt[k][k1][k2];
              }
            }
          }
          if (t > x) continue;
          if (n > 1) {
            m1 = getCnt(1, n);
          } else {
            m1 = 0;
          }
          if (m > 1) {
            m2 = getCnt(2, m);
          } else {
            m2 = 0;
          }
          if (t + m1 * cnt2[k][1] + m2 * cnt2[k][2] < x) continue;
          xx = x - t;
          for (long long m11 = 0; m11 <= min(m1, xx / 2); m11++) {
            long long m22 = xx - m11 * cnt2[k][1];
            if (m22 < 0 || m22 % cnt2[k][2] != 0) continue;
            m22 /= cnt2[k][2];
            if (m11 * cnt2[k][1] + m22 * cnt2[k][2] != xx) continue;
            if (m22 > m2) continue;
            if (isGood(1, n, ls[1][1], ls[1][2], m11) &&
                isGood(2, m, ls[2][1], ls[2][2], m22)) {
              ss[1][0] = ls[1][1];
              ss[1][n - 1] = ls[1][2];
              ss[2][0] = ls[2][1];
              ss[2][m - 1] = ls[2][2];
              ss[1][n] = 0;
              ss[2][m] = 0;
              printf("%s\n%s\n", ss[1], ss[2]);
              return 0;
            }
          }
          for (long long m22 = 0; m22 <= min(m2, xx / 2); m22++) {
            long long m11 = xx - m2 * cnt2[k][2];
            if (m11 < 0 || m11 % cnt2[k][1] != 0) continue;
            m11 /= cnt2[k][1];
            if (m11 > m1) continue;
            if (isGood(1, n, ls[1][1], ls[1][2], m11) &&
                isGood(2, m, ls[2][1], ls[2][2], m22)) {
              ss[1][0] = ls[1][1];
              ss[1][n - 1] = ls[1][2];
              ss[2][0] = ls[2][1];
              ss[2][m - 1] = ls[2][2];
              ss[1][n] = 0;
              ss[2][m] = 0;
              printf("%s\n%s\n", ss[1], ss[2]);
              return 0;
            }
          }
        }
      }
    }
  }
  printf("Happy new year!");
  return 0;
}