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;
const long double eps = 1e-9;
const int inf = LONG_MAX;
const long long inf64 = LLONG_MAX;
const long double pi = 3.1415926535897932384626433832795;
int k, x, n, m;
struct st {
  long long j12, g12, jg21, g21, gj21, ak;
};
int ans1[1000], ans2[1000];
int main() {
  scanf("%d%d%d%d", &k, &x, &n, &m);
  for (int j1 = 0; j1 < 3; j1++)
    for (int j2 = 0; j2 < 3; j2++)
      for (int g1 = 0; g1 < 3; g1++)
        for (int g2 = 0; g2 < 3; g2++)
          for (int k1 = 0; k1 <= n / 2; k1++)
            for (int k2 = 0; k2 <= m / 2; k2++) {
              st f, s;
              f.j12 = 1;
              f.g12 = 0, f.jg21 = 0, f.g21 = 0, f.gj21 = 0, f.ak = k1;
              s.j12 = 0;
              s.g12 = 1, s.jg21 = 0, s.g21 = 0, s.gj21 = 0, s.ak = k2;
              for (int i = 3; i <= k; i++) {
                st z = f;
                f = s;
                s.j12 += z.j12;
                s.g12 += z.g12;
                s.jg21 += z.jg21;
                s.g21 += z.g21;
                s.gj21 += z.gj21;
                s.ak += z.ak;
                if (i == 3) s.jg21++;
                if (i > 3) {
                  if (i % 2 == 0)
                    s.gj21++;
                  else
                    s.g21++;
                }
                if (s.ak > x) break;
              }
              long long rez = s.ak;
              if (j1 == 0 && j2 == 1 && n == 2) rez += s.j12;
              if (g1 == 0 && g2 == 1 && m == 2) rez += s.g12;
              if (j2 == 0 && g1 == 1) rez += s.jg21;
              if (g2 == 0 && g1 == 1) rez += s.g21;
              if (g2 == 0 && j1 == 1) rez += s.gj21;
              if (rez == x) {
                for (int i = 0; i < n; i++) ans1[i] = 2;
                for (int i = 0; i < m; i++) ans2[i] = 2;
                ans1[0] = j1, ans1[n - 1] = j2;
                ans2[0] = g1, ans2[m - 1] = g2;
                if (n == 1 && j1 != j2) break;
                if (m == 1 && g1 != g2) break;
                int kk = k1, last = 1;
                if (n <= 2 && kk != 0) break;
                if (j1 == 0 && kk) ans1[1] = 1, kk--, last++;
                for (int i = 0; i < kk; i++)
                  if ((last == n - 1 && j2 != 0) ||
                      (last + 1 == n - 1 && j2 != 1) || last + 1 >= n)
                    goto lol;
                  else
                    ans1[last] = 0, ans1[last + 1] = 1, last += 2;
                kk = k2, last = 1;
                if (m <= 2 && kk != 0) break;
                if (g1 == 0 && kk) ans2[1] = 1, kk--, last++;
                for (int i = 0; i < kk; i++)
                  if ((last == m - 1 && g2 != 0) ||
                      (last + 1 == m - 1 && g2 != 1) || last + 1 >= m)
                    goto lol;
                  else
                    ans2[last] = 0, ans2[last + 1] = 1, last += 2;
                for (int i = 0; i < n; i++) switch (ans1[i]) {
                    case 0:
                      printf("A");
                      break;
                    case 1:
                      printf("C");
                      break;
                    case 2:
                      printf("X");
                  }
                printf("\n");
                for (int i = 0; i < m; i++) switch (ans2[i]) {
                    case 0:
                      printf("A");
                      break;
                    case 1:
                      printf("C");
                      break;
                    case 2:
                      printf("X");
                  }
                return 0;
              lol:
                int end = 0;
              }
            }
  printf("Happy new year!");
  return 0;
}