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 = 60;
const char INIT[][2] = {{'A', 'A'}, {'B', 'B'}, {'C', 'C'},
                        {'A', 'C'}, {'A', 'B'}, {'B', 'C'},
                        {'B', 'A'}, {'C', 'A'}, {'C', 'B'}};
struct SubString {
  char first, last;
  int tot_ac;
  SubString() {}
  SubString(char f_, char l_, int t_ = 0) {
    first = f_;
    last = l_;
    tot_ac = t_;
  }
  SubString operator+(const SubString& ss) const {
    return SubString(
        first, ss.last,
        tot_ac + ss.tot_ac + (last == 'A' && ss.first == 'C' ? 1 : 0));
  }
  void print(int len) const;
};
int K, X, L[2];
SubString A[MAXK];
bool flag = false;
bool check();
void dfs(int dep);
int main() {
  scanf("%d%d%d%d", &K, &X, &L[0], &L[1]);
  dfs(0);
  puts("Happy new year!");
  return 0;
}
void dfs(int dep) {
  if (dep == 2) {
    if (check()) {
      A[0].print(L[0]), putchar('\n');
      A[1].print(L[1]), putchar('\n');
      exit(0);
    }
    return;
  }
  int i, len = L[dep];
  switch (len) {
    case 1:
      for (i = 0; i < 3; i++) {
        A[dep] = SubString(INIT[i][0], INIT[i][1]);
        dfs(dep + 1);
      }
      return;
    case 2:
      for (i = 0; i < 9; i++) {
        A[dep] = SubString(INIT[i][0], INIT[i][1], i == 3 ? 1 : 0);
        dfs(dep + 1);
      }
      return;
    default:
      int j = len >> 1;
      ;
      if (j << 1 == len) {
        A[dep] = SubString('A', 'C', j);
        dfs(dep + 1);
      } else {
        A[dep] = SubString(INIT[0][0], INIT[0][1], j);
        dfs(dep + 1);
        for (i = 2; i <= 5; i++) {
          A[dep] = SubString(INIT[i][0], INIT[i][1], j);
          dfs(dep + 1);
        }
      }
      for (j--; j >= 0; j--) {
        for (i = 0; i < 9; i++) {
          A[dep] = SubString(INIT[i][0], INIT[i][1], j);
          dfs(dep + 1);
        }
      }
  }
}
bool check() {
  for (int i = 2; i < K; i++) {
    A[i] = A[i - 2] + A[i - 1];
    if (A[i].tot_ac > X) return false;
  }
  return A[K - 1].tot_ac == X;
}
void SubString::print(int len) const {
  putchar(first);
  int i = 1, tot = tot_ac;
  if (first == 'A' && tot > 0) putchar('C'), i++, tot--;
  for (len--; i < len;)
    if (tot > 0)
      putchar('A'), putchar('C'), i += 2, tot--;
    else
      putchar('B'), i++;
  if (i == len) putchar(last);
}