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 k, num, n, m;
struct Node {
  int x, l, r;
  Node(int _x = 0, int _l = 0, int _r = 0) { x = _x, l = _l, r = _r; }
} a[11], b[11], f[55];
int ra[105], rb[105];
inline int calc(int l, int r, int n) { return (n - (l != 0) - (r != 2)) / 2; }
inline void print(int x, int y, int k1, int k2) {
  ra[1] = a[x].l, ra[n] = a[x].r;
  rb[1] = b[y].l, rb[m] = b[y].r;
  for (int i = 2; i < n; ++i) {
    if (k1 > 0) {
      if (ra[i - 1] == 0)
        ra[i] = 2, --k1;
      else
        ra[i] = 0;
    } else
      ra[i] = 1;
  }
  for (int i = 2; i < m; ++i) {
    if (k2 > 0) {
      if (rb[i - 1] == 0)
        rb[i] = 2, --k2;
      else
        rb[i] = 0;
    } else
      rb[i] = 1;
  }
  for (int i = 1; i <= n; ++i) printf("%c", 'A' + ra[i]);
  printf("\n");
  for (int i = 1; i <= m; ++i) printf("%c", 'A' + rb[i]);
  printf("\n");
}
inline void work() {
  int tn = 0, tm = 0;
  for (int i = 0; i <= 2; ++i) {
    if (n == 1) {
      a[++tn] = Node(0, i, i);
    } else {
      for (int j = 0; j <= 2; ++j) a[++tn] = Node(calc(i, j, n), i, j);
    }
    if (m == 1) {
      b[++tm] = Node(0, i, i);
    } else {
      for (int j = 0; j <= 2; ++j) b[++tm] = Node(calc(i, j, m), i, j);
    }
  }
  for (int i = 1; i <= tn; ++i)
    for (int j = 1; j <= tm; ++j) {
      f[1] = a[i];
      f[2] = b[j];
      for (f[1].x = 0; f[1].x <= a[i].x; ++f[1].x)
        for (f[2].x = 0; f[2].x <= b[j].x; ++f[2].x) {
          for (int z = 3; z <= k; ++z) {
            f[z].x =
                f[z - 1].x + f[z - 2].x + (f[z - 2].r == 0 && f[z - 1].l == 2);
            f[z].l = f[z - 2].l;
            f[z].r = f[z - 1].r;
            if (f[z].x > num) f[z].x = num + 1;
          }
          if (f[k].x == num) {
            print(i, j, f[1].x, f[2].x);
            return;
          }
        }
    }
  printf("Happy new year!\n");
}
int main() {
  scanf("%d %d %d %d", &k, &num, &n, &m);
  work();
  return 0;
}