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;
struct fastIO {
  inline fastIO operator>>(int& num) {
    num = 0;
    char c = getchar();
    while (c != '-' && (c < '0' || c > '9')) c = getchar();
    bool foo = 0;
    if (c == '-') {
      foo = 1;
      c = getchar();
    }
    while (c >= '0' && c <= '9') {
      num = (num << 3) + (num << 1) + c - '0';
      c = getchar();
    }
    if (foo) num = -num;
    return *this;
  }
  inline fastIO operator>>(long long& num) {
    num = 0;
    char c = getchar();
    while (c != '-' && (c < '0' || c > '9')) c = getchar();
    bool foo = 0;
    if (c == '-') {
      foo = 1;
      c = getchar();
    }
    while (c >= '0' && c <= '9') {
      num = (num << 3) + (num << 1) + c - '0';
      c = getchar();
    }
    if (foo) num = -num;
    return *this;
  }
  inline fastIO operator>>(float& num) {
    scanf("%f", &num);
    return *this;
  }
  inline fastIO operator>>(double& num) {
    scanf("%lf", &num);
    return *this;
  }
  inline fastIO operator>>(long double& num) {
    scanf("%Lf", &num);
    return *this;
  }
  inline fastIO operator>>(char& num) {
    num = getchar();
    while (num == ' ' || num == '\n') num = getchar();
    return *this;
  }
  inline fastIO operator>>(char* num) {
    int cnt = 0;
    char c = getchar();
    while (c == ' ' || c == '\n') c = getchar();
    while (c != ' ' && c != '\n') {
      num[cnt++] = c;
      c = getchar();
    }
    num[cnt] = 0;
    return *this;
  }
  inline fastIO operator>>(string& num) {
    cin >> num;
    return *this;
  }
  inline void printInt(const int& num) {
    if (num < 10) {
      putchar(num + '0');
      return;
    }
    printInt(num / 10);
    putchar((num % 10) + '0');
  }
  inline void printINT(const long long& num) {
    if (num < 10) {
      putchar(num + '0');
      return;
    }
    printINT(num / 10);
    putchar((num % 10) + '0');
  }
  inline fastIO operator<<(const int& num) {
    if (num < 0)
      putchar('-'), printInt(-num);
    else
      printInt(num);
    return *this;
  }
  inline fastIO operator<<(const long long& num) {
    if (num < 0)
      putchar('-'), printINT(-num);
    else
      printINT(num);
    return *this;
  }
  inline fastIO operator<<(const float& num) {
    printf("%.10f", num);
    return *this;
  }
  inline fastIO operator<<(const double& num) {
    printf("%.16lf", num);
    return *this;
  }
  inline fastIO operator<<(const long double& num) {
    printf("%.20Lf", num);
    return *this;
  }
  inline fastIO operator<<(const char& num) {
    putchar(num);
    return *this;
  }
  inline fastIO operator<<(const char* num) {
    for (int i = 0; num[i]; i++) putchar(num[i]);
    return *this;
  }
  inline fastIO operator<<(const string& num) {
    cout << num;
    return *this;
  }
} fio;
long long k, x, n, m;
const char fuck[] = "Happy new year!\n";
int kt[57], jw[57];
long long x12[57], x21[57], x11[57], x22[57];
long long fib[57], cx1[57], cx2[57];
map<long long, pair<pair<int, int>, pair<int, int> > > mb;
int main() {
  fio >> k >> x >> n >> m;
  kt[1] = jw[1] = cx1[1] = cx2[2] = 1;
  kt[2] = jw[2] = 2;
  fib[1] = fib[2] = 1;
  for (int i = 3; i <= k; i++) {
    x12[i] = x12[i - 1] + x12[i - 2];
    x21[i] = x21[i - 1] + x21[i - 2];
    x11[i] = x11[i - 1] + x11[i - 2];
    x22[i] = x22[i - 1] + x22[i - 2];
    if (jw[i - 2] == 1 && kt[i - 1] == 2) x12[i]++;
    if (jw[i - 2] == 2 && kt[i - 1] == 1) x21[i]++;
    if (jw[i - 2] == 1 && kt[i - 1] == 1) x11[i]++;
    if (jw[i - 2] == 2 && kt[i - 1] == 2) x22[i]++;
    fib[i] = fib[i - 1] + fib[i - 2];
    cx1[i] = cx1[i - 1] + cx1[i - 2];
    cx2[i] = cx2[i - 1] + cx2[i - 2];
    kt[i] = kt[i - 2];
    jw[i] = jw[i - 1];
  }
  for (int f1 = 0; f1 < 4; f1++)
    for (int f2 = 0; f2 < 4; f2++)
      for (int i = 0; i + __builtin_popcount(f1) <= n; i += 2)
        for (int j = 0; j + __builtin_popcount(f2) <= m; j += 2) {
          long long ans = 0;
          ans += i / 2 * cx1[k];
          ans += j / 2 * cx2[k];
          ans += (f1 == 3) * x11[k];
          ans += (f2 == 3) * x22[k];
          ans += ((f1 / 2) && (f2 % 2)) * x21[k];
          ans += ((f1 % 2) && (f2 / 2)) * x12[k];
          if (ans == x) {
            string str1 = "", str2 = "";
            if (f1 / 2) str1 += "C", n--;
            if (f2 / 2) str2 += "C", m--;
            int ii;
            for (ii = 0; ii < i; ii += 2) str1 += "AC";
            for (; ii < n; ii++) str1 += "B";
            for (ii = 0; ii < j; ii += 2) str2 += "AC";
            for (; ii < m; ii++) str2 += "B";
            if (f1 / 2) n++;
            if (f2 / 2) m++;
            if (f1 % 2) str1[n - 1] = 'A';
            if (f2 % 2) str2[m - 1] = 'A';
            cout << str1 << '\n';
            cout << str2 << '\n';
            return 0;
          }
        }
  return printf(fuck), 0;
}