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>
const int MAXK = 55;
char letter[] = {'A', 'C', 'S'};
std::vector<char> chosen;
std::string fib[2];
int k, x, n, m;
long long int fnum[MAXK], cache[MAXK];
int first(int k) { return fib[k % 2].front(); }
int last(int k) {
  if (k == 0) return fib[0].back();
  return fib[1].back();
}
long long int go(int k) {
  if (cache[k] != -1) return cache[k];
  if (k < 2) return 0;
  char c1 = last(k - 2), c2 = first(k - 1);
  std::string str;
  str.push_back(c1);
  str.push_back(c2);
  return cache[k] = go(k - 1) + go(k - 2) + (str == "AC");
}
int maxac(std::string f, int len, std::string& str) {
  char first = f.front();
  char last = f.back();
  str.push_back(first);
  int res = 0;
  len--;
  while (len > 1) {
    if (str.back() == 'A') {
      str.push_back('C');
      res++;
    } else
      str.push_back('A');
    len--;
  }
  if (f.size() >= 2) {
    if (str.back() == 'A' && last == 'C') res++;
    str.push_back(last);
  }
  return res;
}
bool purge(int a, std::string& q) {
  for (int i = 1; i < (int)q.size() - 1 && a; i++)
    if (q[i] == 'C' && q[i - 1] == 'A') {
      q[i] = 'A';
      a--;
    }
  return a == 0;
}
void chooseLetters(int num) {
  if (num == 4) {
    fib[0].clear();
    fib[1].clear();
    fib[0].push_back(chosen[0]);
    if (n > 1) fib[0].push_back(chosen[1]);
    fib[1].push_back(chosen[2]);
    if (m > 1) fib[1].push_back(chosen[3]);
    std::fill(cache, cache + k + 1, -1);
    long long int extra = go(k);
    long long int c1 = fnum[k - 2], c2 = fnum[k - 1];
    long long int lacking = x - extra;
    std::string p1, p2;
    int m1 = maxac(fib[0], n, p1), m2 = maxac(fib[1], m, p2);
    for (int i = 0; i <= m1; i++)
      for (int j = 0; j <= m2; j++)
        if (i * c1 + j * c2 == lacking && purge(m1 - i, p1) &&
            purge(m2 - j, p2)) {
          printf("%s\n%s\n", p1.c_str(), p2.c_str());
          exit(0);
        }
    return;
  }
  for (int i = 0; i < 3; i++) {
    chosen.push_back(letter[i]);
    chooseLetters(num + 1);
    chosen.pop_back();
  }
}
int main() {
  fnum[0] = fnum[1] = 1;
  for (int i = 2; i < MAXK; i++) fnum[i] = fnum[i - 1] + fnum[i - 2];
  scanf("%d%d%d%d", &k, &x, &n, &m);
  k--;
  chooseLetters(0);
  printf("Happy new year!\n");
}