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 JAVA):

Solution:
import java.io.*;
import java.util.*;

public class cf379d {
  static FastIO in = new FastIO(), out = in;

  public static void main(String[] args) {
    int k = in.nextInt();
    long x = in.nextInt();
    int n = in.nextInt();
    int m = in.nextInt();
    
    boolean[] ends_with_a = new boolean[k+1];
    boolean[] starts_with_a = new boolean[k+1];
    long[] a_count = new long[k+1];
    long[] b_count = new long[k+1];
    long[] aa_count = new long[k+1];
    long[] ab_count = new long[k+1];
    long[] ba_count = new long[k+1];
    long[] bb_count = new long[k+1];
    a_count[1] = 1;
    b_count[2] = 1;
    ends_with_a[1] = starts_with_a[1] = true;
    for(int i=3; i<=k; i++) {
      a_count[i] = a_count[i-1]+a_count[i-2];
      b_count[i] = b_count[i-1]+b_count[i-2];
      ends_with_a[i] = ends_with_a[i-1];
      starts_with_a[i] = starts_with_a[i-2];

      aa_count[i] = aa_count[i-1]+aa_count[i-2];
      ab_count[i] = ab_count[i-1]+ab_count[i-2];
      ba_count[i] = ba_count[i-1]+ba_count[i-2];
      bb_count[i] = bb_count[i-1]+bb_count[i-2];
      if(ends_with_a[i-2] && starts_with_a[i-1]) aa_count[i]++;
      if(ends_with_a[i-2] && !starts_with_a[i-1]) ab_count[i]++;
      if(!ends_with_a[i-2] && starts_with_a[i-1]) ba_count[i]++;
      if(!ends_with_a[i-2] && !starts_with_a[i-1]) bb_count[i]++;
    }
    int max = Math.max(n,m)+1;
    
    String[][][][] dp = new String[3][3][max][max];
    dp[0][0][0][1] = "A";
    dp[1][1][0][1] = "B";
    dp[2][2][0][1] = "C";
    for(int len=0; len<max-1; len++) {
      for(int inv = 0; inv<max; inv++) {
        for(int start = 0; start<3; start++) {
          for(int end = 0; end < 3; end++) {
            String base = dp[start][end][inv][len];
            if(base == null) continue;
            
            dp[start][0][inv][len+1] = base + "A";
            dp[start][1][inv][len+1] = base + "B";
            if(end == 0 && inv < max-1) dp[start][2][inv+1][len+1] = base+"C";
            else if(end != 0) dp[start][2][inv][len+1] = base+"C";
          }
        }
      }
    }
    
    for(int aStart = 0; aStart <= 2; aStart++) {
      for(int aEnd = 0; aEnd <= 2; aEnd++) {
        for(int bStart = 0; bStart <= 2; bStart++) {
          for(int bEnd = 0; bEnd <= 2; bEnd++) {
            for(int invA = 0; invA < n; invA++) {
              for(int invB = 0; invB < m; invB++) {
                long count = a_count[k]*invA + b_count[k]*invB;
                if(aEnd == 0 && aStart == 2) count += aa_count[k];
                if(aEnd == 0 && bStart == 2) count += ab_count[k];
                if(bEnd == 0 && aStart == 2) count += ba_count[k];
                if(bEnd == 0 && bStart == 2) count += bb_count[k];
                
                if(count != x) continue;
                String a = dp[aStart][aEnd][invA][n];
                String b = dp[bStart][bEnd][invB][m];
                if(a != null && b != null) {
                  out.println(a);
                  out.println(b);
                  out.close();
                  return;
                }
              }
            }
          }
        }
      }
    }
    out.println("Happy new year!");
    out.close();
  }
  
  static class FastIO extends PrintWriter {
    BufferedReader br;
    StringTokenizer st;

    public FastIO() {
      this(System.in, System.out);
    }

    public FastIO(InputStream in, OutputStream out) {
      super(new BufferedWriter(new OutputStreamWriter(out)));
      br = new BufferedReader(new InputStreamReader(in));
      scanLine();
    }

    public void scanLine() {
      try {
        st = new StringTokenizer(br.readLine().trim());
      } catch (Exception e) {
        throw new RuntimeException(e.getMessage());
      }
    }

    public int numTokens() {
      if (!st.hasMoreTokens()) {
        scanLine();
        return numTokens();
      }
      return st.countTokens();
    }

    public String next() {
      if (!st.hasMoreTokens()) {
        scanLine();
        return next();
      }
      return st.nextToken();
    }

    public double nextDouble() {
      return Double.parseDouble(next());
    }

    public long nextLong() {
      return Long.parseLong(next());
    }

    public int nextInt() {
      return Integer.parseInt(next());
    }
  }
}