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>
#pragma comment(linker, "/STACK:100000000000000")
using namespace std;
const long long int INF = 2e9;
void take(string &f, long long int &ab, long long int &ae, long long int &ina) {
  ab = ae = ina = 0;
  if (f[0] == 'C')
    ab = 2;
  else if (f[0] == 'A')
    ab = 1;
  if (f[(long long int)(f).size() - 1] == 'C')
    ae = 2;
  else if (f[(long long int)(f).size() - 1] == 'A')
    ae = 1;
  for (long long int i = 0; i < ((long long int)(f).size()); i++) {
    if (i && f[i - 1] == 'A' && f[i] == 'C') ina++;
  }
}
long long int cnt(string &f, string &s, long long int k) {
  long long int ab = 0, bb = 0, ae = 0, be = 0, ina = 0, inb = 0;
  take(f, ab, ae, ina);
  take(s, bb, be, inb);
  for (long long int i = 0; i < (k - 2); i++) {
    long long int nb = 0, ne = 0, inn = 0;
    inn = ina + inb;
    if (ae == 1 && bb == 2) inn++;
    nb = ab;
    ne = be;
    ab = bb;
    ae = be;
    ina = inb;
    bb = nb;
    be = ne;
    inb = inn;
  }
  return inb;
}
void apply(string &f, long long int t) {
  long long int en = (long long int)(f).size() - 1;
  long long int a = t % 3;
  t /= 3;
  if (a == 0)
    f[en] = 'D';
  else if (a == 1)
    f[en] = 'A';
  else
    f[en] = 'C';
  a = t;
  if (a == 0)
    f[0] = 'D';
  else if (a == 1)
    f[0] = 'A';
  else
    f[0] = 'C';
}
bool gen_nx(string &f) {
  if ((long long int)(f).size() < 3) return true;
  if (f[1] == 'D') {
    f[1] = 'A';
    return false;
  }
  for (long long int i = 1; i < (long long int)(f).size() - 1; i++) {
    if (f[i] == 'D') {
      f[i] = (f[i - 1] == 'A' ? 'C' : 'A');
      if (f[i + 1] == 'D') f[i + 1] = (f[i] == 'A' ? 'C' : 'A');
      return false;
    }
  }
  if (f[1] == 'C') return true;
  f[1] = 'C';
  for (long long int i = 2; i < (long long int)(f).size() - 1; i++) f[i] = 'D';
  return false;
}
bool gensolve(long long int n, long long int m, long long int t1,
              long long int t2, long long int need, long long int k) {
  string f, s;
  f.resize(n);
  s.resize(m);
  for (long long int i = 0; i < ((long long int)(f).size()); i++) f[i] = 'D';
  for (long long int i = 0; i < ((long long int)(s).size()); i++) s[i] = 'D';
  apply(f, t1);
  apply(s, t2);
  string ns = s;
  do {
    do {
      if (cnt(f, ns, k) == need) {
        cout << f << endl << ns;
        return true;
      }
    } while (!gen_nx(ns));
    ns = s;
  } while (!gen_nx(f));
  return false;
}
int main() {
  long long int k, need, n, m;
  cin >> k >> need >> n >> m;
  for (long long int i = 0; i < (9); i++)
    for (long long int j = 0; j < (9); j++) {
      if (gensolve(n, m, i, j, need, k)) {
        return 0;
      }
    }
  cout << "Happy new year!";
}