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 cnt1[100];
long long cnt2[100];
int front[100], tail[100];
long long cnt[100][2][2];
char ans1[1000], ans2[1000];
int main() {
  int kk, n, m, x;
  scanf("%d%d%d%d", &kk, &x, &n, &m);
  memset(cnt, 0, sizeof cnt);
  cnt1[0] = 1, cnt2[1] = 1;
  for (int i = 2; i < kk; ++i) {
    cnt1[i] = cnt1[i - 1] + cnt1[i - 2];
    cnt2[i] = cnt2[i - 1] + cnt2[i - 2];
  }
  front[0] = 0, front[1] = 1;
  tail[0] = 0, tail[1] = 1;
  for (int i = 2; i < kk; ++i) {
    for (int a = 0; a < 2; ++a)
      for (int b = 0; b < 2; ++b)
        cnt[i][a][b] += cnt[i - 1][a][b] + cnt[i - 2][a][b];
    cnt[i][tail[i - 2]][front[i - 1]]++;
    tail[i] = tail[i - 1];
    front[i] = front[i - 2];
  }
  bool flag = false;
  for (int i = 0; i < 3 && !flag; ++i)
    for (int j = 0; j < 3 && !flag; ++j) {
      if (n == 1 && i != j) continue;
      for (int k = 0; k < 3 && !flag; ++k)
        for (int l = 0; l < 3 && !flag; ++l) {
          if (m == 1 && k != l) continue;
          long long cur = 0;
          if (i == 1 && j == 0) cur += cnt[kk - 1][0][0];
          if (j == 0 && k == 1) cur += cnt[kk - 1][0][1];
          if (l == 0 && i == 1) cur += cnt[kk - 1][1][0];
          if (l == 0 && k == 1) cur += cnt[kk - 1][1][1];
          long long rem = x - cur;
          int l1 = n, l2 = m;
          if (i == 1) l1--;
          if (j == 0) l1--;
          if (k == 1) l2--;
          if (l == 0) l2--;
          if (i == 2) l1--;
          if (j == 2) l1--;
          if (k == 2) l2--;
          if (l == 2) l2--;
          l2 /= 2, l1 /= 2;
          for (int x = (i == 0 && j == 1 ? 1 : 0); x <= l1 && !flag; ++x)
            for (int y = (k == 0 && l == 1 ? 1 : 0); y <= l2 && !flag; ++y) {
              if (x * cnt1[kk - 1] + y * cnt2[kk - 1] == rem) {
                flag = true;
                memset(ans1, 0, sizeof ans1);
                memset(ans2, 0, sizeof ans2);
                if (i == 0) ans1[0] = 'A';
                if (i == 1) ans1[0] = 'C';
                if (i == 2) ans1[0] = 'X';
                if (j == 0) ans1[n - 1] = 'A';
                if (j == 1) ans1[n - 1] = 'C';
                if (j == 2) ans1[n - 1] = 'X';
                if (k == 0) ans2[0] = 'A';
                if (k == 1) ans2[0] = 'C';
                if (k == 2) ans2[0] = 'X';
                if (l == 0) ans2[m - 1] = 'A';
                if (l == 1) ans2[m - 1] = 'C';
                if (l == 2) ans2[m - 1] = 'X';
                int curp = (ans1[0] == 'A'), ax = 0;
                for (int i = 1; i < n;) {
                  if (ax == x) {
                    if (ans1[i] == 0) ans1[i] = 'X';
                    ++i;
                    continue;
                  }
                  if (curp == 0)
                    ans1[i++] = 'A', curp++;
                  else {
                    ans1[i++] = 'C';
                    curp = 0;
                    ax++;
                  }
                }
                curp = (ans2[0] == 'A'), ax = 0;
                for (int i = 1; i < m;) {
                  if (ax == y) {
                    if (ans2[i] == 0) ans2[i] = 'X';
                    ++i;
                    continue;
                  }
                  if (curp == 0)
                    ans2[i++] = 'A', curp++;
                  else {
                    ans2[i++] = 'C';
                    curp = 0;
                    ax++;
                  }
                }
                ans1[n] = ans2[m] = 0;
                puts(ans1);
                puts(ans2);
                break;
              }
            }
        }
    }
  if (!flag) {
    puts("Happy new year!");
  }
  return 0;
}