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 int N = 1e5 + 10;
const int INF = 1e9 + 7;
long long dp[111][3][3], k, x, n, m;
long long val[55][55];
int calc_dp(int start1, int end1, int start2, int end2) {
  memset(dp, -1, sizeof dp);
  dp[1][start1][end1] = 0;
  dp[2][start2][end2] = 0;
  for (int i = 3; i <= k; i++) {
    for (int st = 0; st < 3; st++) {
      for (int en = 0; en < 3; en++) {
        for (int st1 = 0; st1 < 3; st1++) {
          for (int en1 = 0; en1 < 3; en1++) {
            if (dp[i - 2][st][en1] < 0 || dp[i - 1][st1][en] < 0) continue;
            dp[i][st][en] = 0;
            if (st1 == 1 && en1 == 0) {
              dp[i][st][en] += (dp[i - 2][st][en1] + dp[i - 1][st1][en] + 1);
            } else {
              dp[i][st][en] += (dp[i - 2][st][en1] + dp[i - 1][st1][en]);
            }
          }
        }
      }
    }
  }
  if (k & 1) {
    return (int)dp[k][start1][end2];
  }
  return (int)dp[k][start2][end2];
}
map<long long, vector<pair<int, int> > > v;
string str = "";
void addChar(int start) {
  if (start == 0)
    str.push_back('A');
  else if (start == 1)
    str.push_back('C');
  else
    str.push_back('Z');
}
bool construct1(int num, int start, int end, int length) {
  addChar(start);
  if (length == 1) {
    if (num > 0 || start != end) {
      return 0;
    }
    return 1;
  }
  for (int i = 1; i < length - 1; i++) {
    if (str[i - 1] == 'A' && num > 0) {
      str.push_back('C');
      num--;
    } else if (num == 0) {
      str.push_back('Z');
    } else if (num > 0) {
      str.push_back('A');
    }
  }
  addChar(end);
  if (str[length - 2] == 'A' && str[length - 1] == 'C') num--;
  if (num != 0) return false;
  return true;
}
void solve() {
  cin >> k >> x >> n >> m;
  for (int i = 0; i <= 50; i++) {
    for (int j = 0; j <= 50; j++) {
      long long val1 = i, val2 = j;
      for (int num = 3; num <= k; num++) {
        val[i][j] = val1 + val2;
        val1 = val2;
        val2 = val[i][j];
      }
      v[val[i][j]].push_back(pair<int, int>(i, j));
    }
  }
  for (int start1 = 0; start1 < 3; start1++) {
    for (int end1 = 0; end1 < 3; end1++) {
      for (int start2 = 0; start2 < 3; start2++) {
        for (int end2 = 0; end2 < 3; end2++) {
          int concatVal = calc_dp(start1, end1, start2, end2);
          if (v.find(x - concatVal) != v.end() && concatVal >= 0) {
            for (int mv = 0; mv < v[x - concatVal].size(); mv++) {
              int i = v[x - concatVal][mv].first,
                  j = v[x - concatVal][mv].second;
              bool f1 = construct1(i, start1, end1, n);
              string fs = str;
              str = "";
              bool f2 = construct1(j, start2, end2, m);
              string second = str;
              str = "";
              if (f1 & f2) {
                cout << fs << "\n" << second;
                return;
              }
            }
          }
        }
      }
    }
  }
  cout << "Happy new year!";
  return;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  solve();
  return 0;
}