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 INF = (1 << 30) - 1;
const long double EPS = 1e-9;
const long double PI = fabsl(atan2l(0.0, -1.0));
class MegaString {
 public:
  int first;
  int last;
  long long cnt[6];
  MegaString() { memset(cnt, 0, sizeof(cnt)); }
  MegaString(int st) {
    first = last = st;
    memset(cnt, 0, sizeof(cnt));
    cnt[st]++;
  }
  MegaString merge(const MegaString &o) {
    MegaString res;
    for (int i = 0; i < 6; i++) {
      res.cnt[i] = cnt[i] + o.cnt[i];
    }
    res.first = first;
    res.last = o.last;
    if (last == 0 && o.first == 1) {
      res.cnt[2]++;
    }
    if (last == 1 && o.first == 0) {
      res.cnt[3]++;
    }
    if (last == 0 && o.first == 0) {
      res.cnt[4]++;
    }
    if (last == 1 && o.first == 1) {
      res.cnt[5]++;
    }
    return res;
  }
  void print() {
    ;
    ;
  }
};
int k, x, n, m;
MegaString ff[55];
int dp[111][3][111];
int f(int pos, int lst, int c, int a, int b) {
  if (c < 0) {
    return 0;
  }
  if (pos == n) {
    return c == 0;
  }
  int &res = dp[pos][lst][c];
  if (res != -1) {
    return res;
  }
  int from = 0;
  int to = 2;
  if (pos == 0) {
    from = to = a;
  }
  if (pos == n - 1) {
    from = to = b;
  }
  res = 0;
  for (int d = from; d <= to; d++) {
    int nc = c;
    if (lst == 0 && d == 1) {
      nc--;
    }
    int cres = f(pos + 1, d, nc, a, b);
    res |= cres;
  }
  return res;
}
int dp2[111][3][111];
int g(int pos, int lst, int c, int a, int b) {
  if (c < 0) {
    return 0;
  }
  if (pos == m) {
    return c == 0;
  }
  int &res = dp2[pos][lst][c];
  if (res != -1) {
    return res;
  }
  int from = 0;
  int to = 2;
  if (pos == 0) {
    from = to = a;
  }
  if (pos == m - 1) {
    from = to = b;
  }
  res = 0;
  for (int d = from; d <= to; d++) {
    int nc = c;
    if (lst == 0 && d == 1) {
      nc--;
    }
    int cres = g(pos + 1, d, nc, a, b);
    res |= cres;
  }
  return res;
}
bool can(int a, int b, int c, int d, int c1, int c2) {
  if (n == 1 && a != b) {
    return false;
  }
  if (m == 1 && c != d) {
    return false;
  }
  if (!f(0, 2, c1, a, b)) {
    return false;
  }
  if (!g(0, 2, c2, c, d)) {
    return false;
  }
  long long xx = c1 * ff[k - 1].cnt[0] + c2 * ff[k - 1].cnt[1];
  if (b == 0 && c == 1) {
    xx += ff[k - 1].cnt[2];
  }
  if (a == 1 && d == 0) {
    xx += ff[k - 1].cnt[3];
  }
  if (a == 1 && b == 0) {
    xx += ff[k - 1].cnt[4];
  }
  if (c == 1 && d == 0) {
    xx += ff[k - 1].cnt[5];
  };
  return xx == x;
}
const string alp = "ACD";
char tmp[111];
void out(int pos, int lst, int c, int a, int b) {
  if (pos == n) {
    tmp[pos] = 0;
    return;
  }
  int from = 0;
  int to = 2;
  if (pos == 0) {
    from = to = a;
  }
  if (pos == n - 1) {
    from = to = b;
  }
  for (int d = from; d <= to; d++) {
    int nc = c;
    if (lst == 0 && d == 1) {
      nc--;
    }
    if (f(pos + 1, d, nc, a, b)) {
      tmp[pos] = alp[d];
      out(pos + 1, d, nc, a, b);
      return;
    }
  }
  assert(false);
}
void out2(int pos, int lst, int c, int a, int b) {
  if (pos == m) {
    tmp[pos] = 0;
    return;
  }
  int from = 0;
  int to = 2;
  if (pos == 0) {
    from = to = a;
  }
  if (pos == m - 1) {
    from = to = b;
  }
  for (int d = from; d <= to; d++) {
    int nc = c;
    if (lst == 0 && d == 1) {
      nc--;
    }
    if (g(pos + 1, d, nc, a, b)) {
      tmp[pos] = alp[d];
      out2(pos + 1, d, nc, a, b);
      return;
    }
  }
  assert(false);
}
void out(int a, int b, int c) {
  out(0, 2, c, a, b);
  puts(tmp);
}
void out2(int a, int b, int c) {
  out2(0, 2, c, a, b);
  puts(tmp);
}
void solve() {
  scanf("%d%d%d%d", &k, &x, &n, &m);
  ff[0] = MegaString(0);
  ff[1] = MegaString(1);
  for (int i = 2; i < k; i++) {
    ff[i] = ff[i - 2].merge(ff[i - 1]);
  }
  ff[k - 1].print();
  for (int a = 0; a < 3; a++) {
    for (int b = 0; b < 3; b++) {
      for (int c = 0; c < 3; c++) {
        for (int d = 0; d < 3; d++) {
          memset(dp, -1, sizeof(dp));
          memset(dp2, -1, sizeof(dp2));
          for (int c1 = 0; c1 <= n; c1++) {
            for (int c2 = 0; c2 <= m; c2++) {
              if (can(a, b, c, d, c1, c2)) {
                ;
                out(a, b, c1);
                out2(c, d, c2);
                return;
              }
            }
          }
        }
      }
    }
  }
  puts("Happy new year!");
}
int main() {
  clock_t start = clock();
  solve();
  ;
  return 0;
}