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;
int get(char x, char y, int len) {
  string s;
  s.push_back(x);
  s.push_back(y);
  if (s == "AC") return len / 2;
  if (s == "AA" || s == "CC" || s == "AB" || s == "BC") return (len - 1) / 2;
  return (len - 2) / 2;
}
int a[100], b[100], cnt;
long long c[100][2], d[100][2][2];
int main() {
  int x, cnt, n, m;
  cin >> x >> cnt >> n >> m;
  a[1] = b[1] = 0;
  c[1][0] = 1;
  a[2] = b[2] = 1;
  c[2][1] = 1;
  for (int i = 3; i <= x; i++) {
    a[i] = a[i - 2];
    b[i] = b[i - 1];
    for (int j = 0; j < 2; j++) {
      c[i][j] = c[i - 2][j] + c[i - 1][j];
      for (int k = 0; k < 2; k++) d[i][j][k] = d[i - 2][j][k] + d[i - 1][j][k];
    }
    ++d[i][b[i - 2]][a[i - 1]];
  }
  bool flag = 0;
  char i, j, k, l;
  int u, v;
  for (i = 'A'; i <= 'C'; i++)
    for (j = 'A'; j <= 'C'; j++) {
      if (n == 1) j = i;
      for (k = 'A'; k <= 'C'; k++)
        for (l = 'A'; l <= 'C'; l++) {
          if (m == 1) l = k;
          int N = get(i, j, n), M = get(k, l, m);
          for (u = 0; u <= N; u++)
            for (v = 0; v <= M; v++) {
              long long s = c[x][0] * u + c[x][1] * v +
                            d[x][0][0] * (j == 'A' && i == 'C') +
                            d[x][0][1] * (j == 'A' && k == 'C') +
                            d[x][1][0] * (l == 'A' && i == 'C') +
                            d[x][1][1] * (l == 'A' && k == 'C');
              if (s == cnt) {
                flag = 1;
                goto la;
              }
            }
          if (m == 1) break;
        }
      if (n == 1) break;
    }
la:;
  if (flag) {
    char s[200] = {0}, t[200] = {0};
    s[0] = i;
    s[n - 1] = j;
    t[0] = k;
    t[m - 1] = l;
    int x;
    for (x = i == 'A' ? 0 : 1; u && x < n; x += 2) {
      s[x] = 'A';
      s[x + 1] = 'C';
      --u;
    }
    for (x = !x ? 1 : x; x < n - 1; x++) s[x] = 'B';
    for (x = k == 'A' ? 0 : 1; v && x < m; x += 2) {
      t[x] = 'A';
      t[x + 1] = 'C';
      --v;
    }
    for (x = !x ? 1 : x; x < m - 1; x++) t[x] = 'B';
    puts(s);
    puts(t);
  } else
    puts("Happy new year!");
}