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 node {
  long long x;
  long long y;
};
long long gcd(long long a, long long b) {
  return b == 0 ? a : a > b ? gcd(b, a % b) : gcd(a, b % a);
}
bool myfunc(struct node a, struct node b) {
  if (a.x == b.x) {
    return a.y < b.y;
  } else {
    return a.x < b.x;
  }
}
long long fibo[10010];
string s1, s2;
long long two[5010];
long long three[5010];
int main() {
  long long k, x, n, m;
  int m1;
  int j;
  cin >> k >> x >> n >> m;
  int i;
  int l;
  if (x == 0) {
    for (i = 1; i <= n; i++) {
      cout << "A";
    }
    cout << endl;
    for (i = 1; i <= m; i++) {
      cout << "B";
    }
    cout << endl;
    return 0;
  }
  s1 = "";
  s2 = "";
  two[1] = 0;
  two[2] = 0;
  fibo[1] = 0;
  fibo[2] = 1;
  int prev_fst;
  int prev_lst;
  int prev_prev_fst;
  int prev_prev_lst;
  prev_lst = 1;
  prev_prev_fst = 2;
  prev_fst = 3;
  prev_prev_lst = 4;
  for (i = 3; i <= 50; i++) {
    two[i] = two[i - 2] + two[i - 1];
    if (prev_prev_lst == 1 && prev_fst == 2) {
      two[i]++;
      int current_lst = prev_lst;
      int current_fst = prev_prev_fst;
      prev_prev_fst = prev_fst;
      prev_prev_lst = prev_lst;
      prev_lst = current_lst;
      prev_fst = current_fst;
    } else {
      int current_lst = prev_lst;
      int current_fst = prev_prev_fst;
      prev_prev_fst = prev_fst;
      prev_prev_lst = prev_lst;
      prev_lst = current_lst;
      prev_fst = current_fst;
    }
  }
  three[1] = 0;
  three[2] = 0;
  prev_lst = 1;
  prev_fst = 2;
  prev_prev_fst = 3;
  prev_prev_lst = 4;
  for (i = 3; i <= 50; i++) {
    three[i] = three[i - 1] + three[i - 2];
    if (prev_prev_lst == 1 && prev_fst == 2) {
      three[i]++;
      int current_lst = prev_lst;
      int current_fst = prev_prev_fst;
      prev_prev_fst = prev_fst;
      prev_prev_lst = prev_lst;
      prev_lst = current_lst;
      prev_fst = current_fst;
    } else {
      int current_lst = prev_lst;
      int current_fst = prev_prev_fst;
      prev_prev_fst = prev_fst;
      prev_prev_lst = prev_lst;
      prev_lst = current_lst;
      prev_fst = current_fst;
    }
  }
  long long occ = 0;
  for (i = 3; i <= 50; i++) {
    fibo[i] = fibo[i - 1] + fibo[i - 2];
  }
  string temps1, temps2;
  for (i = 0; i <= 15; i++) {
    temps1 = "";
    temps2 = "";
    int b1, b2, b3, b4;
    b1 = (i & 8) ? 1 : 0;
    b2 = (i & 4) ? 1 : 0;
    b3 = (i & 2) ? 1 : 0;
    b4 = (i & 1) ? 1 : 0;
    long long ans = 0;
    int tempn, tempm;
    tempn = n;
    tempm = m;
    if (b1 == 1) {
      tempn--;
    }
    if (b2 == 1) {
      tempn--;
    }
    if (b3 == 1) {
      tempm--;
    }
    if (b4 == 1) {
      tempm--;
    }
    if (b2 == 1 && b3 == 1) {
      ans += fibo[k - 1];
    }
    if (b1 == 1 && b4 == 1) {
      ans += two[k];
    }
    if (b3 == 1 && b4 == 1) {
      ans += three[k];
    }
    int flg = 0;
    for (j = 0; j <= tempn / 2 && tempn >= 0 && tempm >= 0; j++) {
      for (l = 0; l <= tempm / 2; l++) {
        if (fibo[k - 1] * j + fibo[k] * l + ans == x) {
          int which_char = 0;
          if (b1 == 1) {
            temps1 += 'C';
            which_char = 1;
          }
          for (m1 = 1; m1 <= j; m1++) {
            temps1 += "AC";
            which_char += 2;
          }
          for (m1 = which_char; m1 < n - 1; m1++) {
            temps1 += 'F';
          }
          if (b2 == 1 && m1 < n) {
            temps1 += 'A';
          } else if (m1 < n) {
            temps1 += 'F';
          }
          which_char = 0;
          if (b3 == 1) {
            temps2 += 'C';
            which_char = 1;
          }
          for (m1 = 1; m1 <= l; m1++) {
            temps2 += "AC";
            which_char += 2;
          }
          for (m1 = which_char; m1 < m - 1; m1++) {
            temps2 += 'F';
          }
          if (b4 == 1 && m1 < m) {
            temps2 += 'A';
          } else if (m1 < m) {
            temps2 += 'F';
          }
          cout << temps1 << endl << temps2 << endl;
          return 0;
        }
      }
    }
  }
  cout << "Happy new year!\n";
  return 0;
}