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 k, p, n, m;
long long dp[100][5];
long long tmp[10];
long long ok = 0;
void print(char str[], long long num, long long len) {
  if (str[1] == 'C') {
    for (long long i = 2; i <= 2 * num; i += 2) {
      str[i] = 'A';
      str[i + 1] = 'C';
    }
    for (long long i = 2 * num + 2; i <= len - 1; i++) str[i] = 'Z';
  } else {
    for (long long i = 1; i <= 2 * num; i += 2) {
      str[i] = 'A';
      str[i + 1] = 'C';
    }
    for (long long i = 2 * num + 1; i <= len - 1; i++) str[i] = 'Z';
  }
  for (long long i = 1; i <= len; i++) printf("%c", str[i]);
  printf("\n");
}
long long solve(long long x, long long y, long long status) {
  long long hehe = status;
  memset(dp, 0, sizeof(dp));
  long long tt = 0;
  memset(tmp, 0, sizeof(tmp));
  while (status) {
    tt++;
    tmp[tt] = status % 2;
    status /= 2;
  }
  long long tx;
  long long ty;
  tx = ty = 0;
  if (tmp[2] && tmp[3]) tmp[4] = 1;
  if (tmp[1]) {
    return 0;
    tx += 2;
  }
  if ((tmp[2] || tmp[3]) && (tmp[2] != tmp[3])) {
    tx++;
    ty++;
  }
  if (tmp[2] && tmp[3]) {
    tx += 2;
    ty += 2;
  }
  if (tmp[4] && tmp[3] == 0) {
    ty += 2;
  }
  if (x * 2 + tx > n) return 0;
  if (y * 2 + ty > m) return 0;
  memset(dp, 0, sizeof(dp));
  dp[1][1] = x;
  dp[2][1] = y;
  dp[3][1] = x + y;
  dp[3][3] = tmp[2];
  for (long long i = 4; i <= k; i++) {
    for (long long j = 1; j <= 5; j++) dp[i][j] += dp[i - 1][j] + dp[i - 2][j];
    if (i % 2 == 0)
      dp[i][4] += tmp[3];
    else
      dp[i][5] += tmp[4];
  }
  long long tsum = 0;
  for (long long j = 1; j <= 5; j++) tsum += dp[k][j];
  if (tsum != p) return 0;
  char ansa[105];
  char ansb[105];
  memset(ansa, 0, sizeof(ansa));
  memset(ansb, 0, sizeof(ansb));
  if (tmp[1]) {
    ansa[1] = 'C';
    ansa[n] = 'A';
  }
  if (tmp[2]) {
    ansa[n] = 'A';
    ansb[1] = 'C';
  }
  if (tmp[3]) {
    ansa[1] = 'C';
    ansb[m] = 'A';
  }
  if (tmp[4]) {
    ansb[1] = 'C';
    ansb[m] = 'A';
  }
  if (ansa[n] == '\0') ansa[n] = 'Z';
  if (ansb[m] == '\0') ansb[m] = 'Z';
  print(ansa, x, n);
  print(ansb, y, m);
  return 1;
}
int main() {
  scanf("%I64d %I64d %I64d %I64d", &k, &p, &n, &m);
  for (long long i = 0; i <= n / 2; i++) {
    for (long long j = 0; j <= m / 2; j++) {
      for (long long s = 0; s <= 15; s++)
        if (solve(i, j, s)) return 0;
    }
  }
  printf("Happy new year!\n");
  return 0;
}