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 double eps = 1e-8;
inline int max(int a, int b) { return a < b ? b : a; }
inline int min(int a, int b) { return a > b ? b : a; }
inline long long max(long long a, long long b) { return a < b ? b : a; }
inline long long min(long long a, long long b) { return a > b ? b : a; }
const int mod = 1e9 + 7;
const int N = 1e6 + 10;
const long long inf = 1e18;
long long fl(long long x, long long y) {
  if (x >= 0) return x / y;
  return x / y - (x % y ? 1 : 0);
}
long long cl(long long x, long long y) {
  if (x >= 0) return (x + y - 1) / y;
  return x / y;
}
long long power(long long a, long long n) {
  if (n == 0) {
    return 1;
  }
  long long b = power(a, n / 2);
  b = b * b % mod;
  if (n % 2) b = b * a % mod;
  return b;
}
long long dp[55];
int k, x, n, m;
string make(int i, int i1, int j1, int n) {
  string s1;
  int t = n;
  if (i1 == 0) {
    s1 = 'C';
    t--;
  }
  if (i1 == 2) {
    s1 = 'X';
    t--;
  }
  for (int ii = 0; ii < i; ++ii) {
    s1 += "AC";
    t -= 2;
  }
  while (t > 1) {
    s1 += "X";
    t--;
  }
  if (t == 1) {
    if (j1 == 0) {
      s1 += "C";
    } else if (j1 == 1) {
      s1 += "A";
    } else
      s1 += "X";
  }
  return s1;
}
int check(string s, int i, int i1, int j1, int n) {
  if (s.size() != n) return 0;
  if (s[0] == 'A' && i1 != 1) return 0;
  if (s[0] == 'C' && i1 != 0) return 0;
  if (s[0] == 'X' && i1 != 2) return 0;
  if (s[n - 1] == 'A' && j1 != 1) return 0;
  if (s[n - 1] == 'C' && j1 != 0) return 0;
  if (s[n - 1] == 'X' && j1 != 2) return 0;
  for (int ii = 1; ii < n; ++ii) {
    if (s[ii] == 'C' && s[ii - 1] == 'A') i--;
  }
  if (i == 0) return 1;
  return 0;
}
void possible(int i, int j, int i1, int j1, int i2, int j2) {
  string s1 = make(i, i1, j1, n);
  if (!check(s1, i, i1, j1, n)) return;
  string s2 = make(j, i2, j2, m);
  if (!check(s2, j, i2, j2, m)) return;
  cout << s1 << "\n" << s2 << "\n";
  exit(0);
}
int main() {
  scanf("%d %d %d %d", &k, &x, &n, &m);
  for (int i = 0; i <= n / 2; i++) {
    for (int j = 0; j <= m / 2; j++) {
      for (int i1 = 0; i1 < 3; ++i1)
        for (int j1 = 0; j1 < 3; ++j1)
          for (int i2 = 0; i2 < 3; ++i2)
            for (int j2 = 0; j2 < 3; ++j2) {
              int s1 = i1, e1 = j1, s2 = i2, e2 = j2;
              int cnt = 0;
              dp[1] = i;
              dp[2] = j;
              for (int l = 3; l < k + 1; ++l) {
                dp[l] = dp[l - 1] + dp[l - 2];
                if (e1 == 1 && s2 == 0) dp[l]++;
                int t1 = e1, t2 = s1;
                e1 = e2;
                s1 = s2;
                s2 = t2;
              }
              if (dp[k] == (long long)x) {
                possible(i, j, i1, j1, i2, j2);
              }
            }
    }
  }
  printf("Happy new year!\n");
  return 0;
}