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;
int const maxn = (int)1e5 + 11;
int const inf = (1 << 30) - 1;
struct data {
  char first, second;
  long long num;
  data() {}
  data(char _f, char _s, long long _num) {
    first = _f;
    second = _s;
    num = _num;
  }
  data operator+(data o) {
    data res = data(first, second, num);
    res.num += o.num;
    if (second == 'A' && o.first == 'C') res.num++;
    res.second = o.second;
    return res;
  }
};
data d[55];
int k, x, n, m;
vector<data> getAC(int n) {
  vector<data> res;
  if (n == 2) {
    res.push_back(data('A', 'C', 1));
    return res;
  }
  res.push_back(data('A', 'C', 0));
  for (int i = 1, cnt = 1; i < n; i += 2, cnt++) {
    res.push_back(data('A', 'C', cnt));
  }
  return res;
}
vector<data> getA(char ch, int n) {
  vector<data> res;
  if (n == 2) {
    res.push_back(data('A', ch, 0));
    return res;
  }
  res.push_back(data('A', ch, 0));
  for (int i = 1, cnt = 1; i < n - 1; i += 2, cnt++) {
    res.push_back(data('A', ch, cnt));
  }
  return res;
}
vector<data> getC(char ch, int n) {
  vector<data> res;
  if (n == 2) {
    res.push_back(data(ch, 'C', 0));
    return res;
  }
  res.push_back(data(ch, 'C', 0));
  for (int i = 2, cnt = 1; i < n; i += 2, cnt++) {
    res.push_back(data(ch, 'C', cnt));
  }
  return res;
}
vector<data> get(char ch1, char ch2, int n) {
  vector<data> res;
  if (n == 2) {
    res.push_back(data(ch1, ch2, 0));
    return res;
  }
  res.push_back(data(ch1, ch2, 0));
  for (int i = 2, cnt = 1; i < n - 1; i += 2, cnt++) {
    res.push_back(data(ch1, ch2, cnt));
  }
  return res;
}
vector<data> getNV(int ni, int nj, int n) {
  char ch[] = {'A', 'B', 'C'};
  vector<data> nv;
  if (n == 1)
    nv.push_back(data(ch[ni], ch[ni], 0));
  else if (ch[ni] == 'A' && ch[nj] == 'C')
    nv = getAC(n);
  else if (ch[ni] == 'A')
    nv = getA(ch[nj], n);
  else if (ch[nj] == 'C')
    nv = getC(ch[ni], n);
  else
    nv = get(ch[ni], ch[nj], n);
  return nv;
}
string outStr(data a, int len) {
  string res = "";
  res += a.first;
  if (len == 1) return res;
  if (len == 2) {
    res += a.second;
    return res;
  }
  int q = a.num;
  if (a.first == 'A') {
    res = "";
    int limit = len - 1;
    if (a.second == 'C') limit = len;
    for (int i = 1, cnt = 1; i < limit && cnt <= q; i += 2, cnt++) {
      res += "AC";
    }
    while (res.length() < len) res += 'B';
    res[(int)res.length() - 1] = a.second;
    return res;
  }
  int limit = len - 1;
  if (a.second == 'C') {
    limit = len;
  }
  for (int i = 2, cnt = 1; i < limit && cnt <= q; i += 2, cnt++) {
    res += "AC";
  }
  while (res.length() < len) res += 'B';
  res[(int)res.length() - 1] = a.second;
  return res;
}
void check(data a, data b) {
  d[1] = a;
  d[2] = b;
  for (int i = 3; i <= k; i++) {
    d[i] = d[i - 2] + d[i - 1];
    if (d[i].num > x) return;
  }
  if (d[k].num != x) return;
  cout << outStr(a, n) << endl;
  cout << outStr(b, m) << endl;
  exit(0);
}
int main() {
  scanf("%d%d%d%d", &k, &x, &n, &m);
  for (int ni = 0; ni < 3; ni++) {
    for (int nj = 0; nj < 3; nj++) {
      vector<data> nv = getNV(ni, nj, n);
      for (int mi = 0; mi < 3; mi++) {
        for (int mj = 0; mj < 3; mj++) {
          vector<data> mv = getNV(mi, mj, m);
          for (typeof(nv.begin()) it = nv.begin(); it != nv.end(); it++) {
            for (typeof(mv.begin()) it2 = mv.begin(); it2 != mv.end(); it2++) {
              check(*it, *it2);
            }
          }
        }
      }
    }
  }
  printf("Happy new year!\n");
  return 0;
}