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;
long long ops, minoc, s1l, s2l, cont1, cont2, b1c, b2c, e1c, e2c, cont1c,
    cont2c, k1, k2, k3, totes;
long long ser1[105], ser2[105];
long long finres1[105], finres2[105];
long long op(long long i) {
  if (i == 1) return 2;
  return 1;
}
int main() {
  scanf("%d%d%d%d", &ops, &minoc, &s1l, &s2l);
  for (int b1 = 1; b1 <= 3; b1++) {
    for (int b2 = 1; b2 <= 3; b2++) {
      for (int e1 = 1; e1 <= 3; e1++) {
        for (int e2 = 1; e2 <= 3; e2++) {
          for (int v1 = 0; v1 <= s1l / 2; v1++) {
            for (int v2 = 0; v2 <= s2l / 2; v2++) {
              cont1 = 0;
              cont2 = 0;
              b1c = b1;
              b2c = b2;
              e1c = e1;
              e2c = e2;
              if ((s1l == 1 && b1 != e1) || (s2l == 1 && b2 != e2)) {
                continue;
              }
              for (int k = 1, v = b1; k <= s1l; k++, v = op(v)) {
                if (cont1 == v1 && k != 1 && k != s1l) {
                  ser1[k] = 3;
                  continue;
                }
                if (k == s1l) {
                  v = e1c;
                }
                ser1[k] = v;
                if (ser1[k] == 2 && ser1[k - 1] == 1) cont1++;
              }
              for (int k = 1, v = b2; k <= s2l; k++, v = op(v)) {
                if (cont2 == v2 && k != 1 && k != s2l) {
                  ser2[k] = 3;
                  continue;
                }
                if (k == s2l) {
                  v = e2c;
                }
                ser2[k] = v;
                if (ser2[k] == 2 && ser2[k - 1] == 1) cont2++;
              }
              if (cont1 != v1 || cont2 != v2) continue;
              cont1c = cont1;
              cont2c = cont2;
              for (int k = 3; k <= ops; k++) {
                k1 = cont2c;
                k2 = b2c;
                k3 = e2c;
                cont2c += cont1c;
                if (b2c == 2 && e1c == 1) cont2c++;
                b2c = b1c;
                cont1c = k1;
                b1c = k2;
                e1c = k3;
              }
              if (cont2c == minoc) {
                minoc = -1;
                for (int k = 1; k <= s1l; k++) {
                  finres1[k] = ser1[k];
                }
                for (int k = 1; k <= s2l; k++) {
                  finres2[k] = ser2[k];
                }
              }
            }
          }
        }
      }
    }
  }
  if (minoc != -1) {
    printf("Happy new year!\n");
    return 0;
  }
  for (int i = 1; i <= s1l; i++) {
    if (finres1[i] == 1)
      printf("A");
    else if (finres1[i] == 2)
      printf("C");
    else
      printf("N");
  }
  printf("\n");
  for (int i = 1; i <= s2l; i++) {
    if (finres2[i] == 1)
      printf("A");
    else if (finres2[i] == 2)
      printf("C");
    else
      printf("N");
  }
  printf("\n");
  return 0;
}