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 <typename T>
inline void read(T &x) {
  bool b = 0;
  char c;
  while (!isdigit(c = getchar()) && c != '-')
    ;
  if (c == '-') c = getchar(), b = 1;
  x = c - 48;
  while (isdigit(c = getchar())) x = (x << 3) + (x << 1) + c - 48;
  if (b) x = -x;
}
template <typename T>
inline void wrip(T x) {
  if (x > 9) wrip(x / 10);
  putchar(x % 10 + 48);
}
template <typename T>
inline void write(T x) {
  if (x < 0) putchar('-'), x = -x;
  wrip(x);
}
void reads(string &s) {
  char c;
  while (!isalpha(c = getchar()))
    ;
  s = c;
  while (isalpha(c = getchar())) s += c;
}
const double pi = acos(-1);
const int mod = 1e9 + 7;
const int inf = 1e9 + 11;
const int N = 111;
int n, m, k, s1[N], s2[N];
bool ok1[N], ok2[N];
long long x, a[N], b[N], c[N], g[N], f[N];
char ch[] = {'A', 'C', 'B'};
void Out1(int first, int last, int Max) {
  s1[1] = first;
  s1[n] = last;
  if (n == 2) return;
  if (s1[1] == 0)
    for (int i = 2; i <= n; i += 2) {
      if (Max) {
        s1[i] = 1;
        s1[i - 1] = 0;
        Max--;
      } else {
        if (i < n) s1[i] = 2;
        s1[i - 1] = 2;
      }
    }
  else
    for (int i = 3; i <= n; i += 2) {
      if (Max) {
        s1[i] = 1;
        s1[i - 1] = 0;
        Max--;
      } else {
        if (i < n) s1[i] = 2;
        s1[i - 1] = 2;
      }
    }
}
void Out2(int first, int last, int Max) {
  s2[1] = first;
  s2[m] = last;
  if (m == 2) goto line;
  if (s2[1] == 0)
    for (int i = 2; i <= m; i += 2) {
      if (Max) {
        s2[i] = 1;
        s2[i - 1] = 0;
        Max--;
      } else {
        if (i < m) s2[i] = 2;
        s2[i - 1] = 2;
      }
    }
  else
    for (int i = 3; i <= m; i += 2) {
      if (Max) {
        s2[i] = 1;
        s2[i - 1] = 0;
        Max--;
      } else {
        if (i < m) s2[i] = 2;
        s2[i - 1] = 2;
      }
    }
line:;
  for (int i = 1; i <= n; i++) cout << ch[s1[i]];
  cout << '\n';
  for (int i = 1; i <= m; i++) cout << ch[s2[i]];
}
int main() {
  cin >> k >> x >> n >> m;
  a[3] = 1;
  for (int i = 4; i <= k; i++) a[i] = a[i - 1] + a[i - 2];
  b[4] = 1;
  for (int i = 5; i <= k; i++) {
    b[i] = b[i - 1] + b[i - 2];
    b[i] += (i % 2 == 0);
  }
  c[5] = 1;
  for (int i = 6; i <= k; i++) {
    c[i] = c[i - 1] + c[i - 2];
    c[i] += i % 2;
  }
  f[3] = 1;
  for (int i = 4; i <= k; i++) f[i] = f[i - 1] + f[i - 2];
  g[2] = 1;
  for (int i = 3; i <= k; i++) g[i] = g[i - 1] + g[i - 2];
  for (int firsts1 = 0; firsts1 <= 2; firsts1++)
    for (int lasts1 = 0; lasts1 <= 2; lasts1++) {
      if (n == 1 && lasts1 != firsts1) continue;
      for (int firsts2 = 0; firsts2 <= 2; firsts2++) {
        for (int lasts2 = 0; lasts2 <= 2; lasts2++) {
          if (m == 1 && lasts2 != firsts2) continue;
          long long sum = 0;
          sum += (lasts1 == 0 && firsts2 == 1) * a[k];
          sum += (lasts2 == 0 && firsts1 == 1) * b[k];
          sum += (lasts2 == 0 && firsts2 == 1) * c[k];
          if (sum > x) continue;
          s1[1] = firsts1;
          s2[1] = firsts2;
          s1[n] = lasts1;
          s2[n] = lasts2;
          memset(ok1, 0, sizeof(ok1));
          memset(ok2, 0, sizeof(ok2));
          int Min = 0, Max = 0;
          if (n == 2 && s1[1] == 0 && s1[n] == 1) Min = 1;
          if (s1[1] == 0)
            for (int i = 2; i <= n; i += 2) {
              if (i < n)
                Max++;
              else if (s1[n] == 1)
                Max++;
            }
          else
            for (int i = 3; i <= n; i += 2) {
              if (i < n)
                Max++;
              else if (s1[n] == 1)
                Max++;
            }
          for (int i = Min; i <= Max; i++) ok1[i] = 1;
          Min = Max = 0;
          if (m == 2 && s2[1] == 0 && s2[m] == 1) Min = 1;
          if (s2[1] == 0)
            for (int i = 2; i <= m; i += 2) {
              if (i < m)
                Max++;
              else if (s2[m] == 1)
                Max++;
            }
          else
            for (int i = 3; i <= m; i += 2) {
              if (i < m)
                Max++;
              else if (s2[m] == 1)
                Max++;
            }
          for (int i = Min; i <= Max; i++) ok2[i] = 1;
          for (int num1 = 0; num1 <= n / 2; num1++)
            for (int num2 = 0; num2 <= m / 2; num2++)
              if (ok1[num1] && ok2[num2] &&
                  sum + f[k] * num1 + g[k] * num2 == x) {
                Out1(firsts1, lasts1, num1);
                Out2(firsts2, lasts2, num2);
                return 0;
              }
        }
      }
    }
  cout << "Happy new year!";
  return 0;
}