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 countAC(string &S) {
  int cnt = 0;
  for (int i = 1; i < S.length(); i++) {
    if (S[i - 1] == 'A' && S[i] == 'C') {
      cnt++;
    }
  }
  return cnt;
}
bool solve(string &S1, string &S2, int K, int X) {
  long long len[K];
  char start[K];
  char end[K];
  int L1 = S1.length();
  int L2 = S2.length();
  len[0] = countAC(S1);
  start[0] = S1[0];
  end[0] = S1[L1 - 1];
  len[1] = countAC(S2);
  start[1] = S2[0];
  end[1] = S2[L2 - 1];
  for (int i = 2; i < K; i++) {
    len[i] = len[i - 2] + len[i - 1];
    start[i] = start[i - 2];
    end[i] = end[i - 1];
    if (end[i - 2] == 'A' && start[i - 1] == 'C') {
      len[i]++;
    }
    if (len[i] > X) {
      return false;
    }
  }
  return (len[K - 1] == X);
}
void blotX(string &S, int start, int end) {
  for (int i = start; i <= end; i++) {
    S[i] = 'X';
  }
}
bool remAC(string &S, int cnt) {
  for (int i = 1; i < S.length(); i++) {
    if (cnt <= 0) {
      break;
    }
    if (S[i - 1] == 'A' && S[i] == 'C') {
      S[i - 1] = 'X';
      S[i] = 'X';
      cnt--;
    }
  }
  return (cnt == 0);
}
string makeString(int len, char start, char repOdd, char repEvn, char end) {
  string S(len, 'A');
  S[0] = start;
  for (int i = 1; i < len - 1; i++) {
    if (i % 2 == 1) {
      S[i] = repOdd;
    } else {
      S[i] = repEvn;
    }
  }
  S[len - 1] = end;
  return S;
}
vector<string> getPossibilities(int len) {
  vector<string> vec;
  char USE[] = {'A', 'C'};
  for (char start : USE) {
    for (char end : USE) {
      for (int i = 0; i < 2; i++) {
        char repOdd = USE[i];
        char repEvn = USE[1 - i];
        string init = makeString(len, start, repOdd, repEvn, end);
        vec.push_back(init);
        for (int j = 1;; j++) {
          string S = init;
          if (remAC(S, j)) {
            vec.push_back(S);
          } else {
            break;
          }
        }
      }
    }
  }
  vec.push_back(string(len, 'X'));
  return vec;
}
void printAns(int L1, int N, int L2, int M) {
  string S1(N, 'X');
  for (int i = 0; i < L1; i++) {
    if (i % 2 == 0) {
      S1[i + N - L1] = 'A';
    } else {
      S1[i + N - L1] = 'C';
    }
  }
  string S2(M, 'X');
  for (int i = 0; i < L2; i++) {
    if (i % 2 == 0) {
      S2[L2 - i - 1] = 'C';
    } else {
      S2[L2 - i - 1] = 'A';
    }
  }
  cout << S1 << endl << S2 << endl;
}
int main() {
  std::ios::sync_with_stdio(false);
  int K, X, N, M;
  cin >> K >> X >> N >> M;
  char USE[] = {'A', 'C'};
  vector<string> v1 = getPossibilities(N);
  vector<string> v2 = getPossibilities(M);
  for (string s1 : v1) {
    for (string s2 : v2) {
      if (solve(s1, s2, K, X)) {
        cout << s1 << endl << s2 << endl;
        return 0;
      }
    }
  }
  cout << "Happy new year!" << endl;
  return 0;
}