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:
//package GoodBye2013;

import java.io.*;
import java.util.*;

public class GoodByeqDNewYearLetter {

	public static void main(String args[] ) throws Exception {
		   
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter w = new PrintWriter(System.out);
		
	    StringTokenizer st1 = new StringTokenizer(br.readLine());
	    int k = ip(st1.nextToken());
		long x = ip(st1.nextToken());
	    int N = ip(st1.nextToken());
	    int M = ip(st1.nextToken());
	    
	    long s1[] = new long[k+1];
	    s1[1] = 1;	s1[2] = 0;
	    for(int i=3;i<=k;i++)
	    	s1[i] = s1[i-2] + s1[i-1];
	    
	    long s2[] = new long[k+1];
	    s2[1] = 0;	s2[2] = 1;
	    for(int i=3;i<=k;i++)
	    	s2[i] = s2[i-2] + s2[i-1];
	    
	    
	    long S12[] = new long[k+1];
	    S12[3] = 1;
	    for(int i=4;i<=k;i++)
	    	S12[i] = S12[i-1] + S12[i-2];
	    
	    long S22[] = new long[k+1];
	    for(int i=5;i<=k;i++){
	    	S22[i] = S22[i-1] + S22[i-2];
	    	if(i % 2 == 1)
	    		S22[i]++;
	    }
	    
	    long S21[] = new long[k+1];
	    for(int i=4;i<=k;i++){
	    	S21[i] = S21[i-1] + S21[i-2];
	    	if(i % 2 == 0)
	    		S21[i]++;
	    }
	    
	   	char ans1[] = new char[N];
	   	char ans2[] = new char[M];
	   	int n = N,m = M;
	   	
	   	for(int AC2 = 0;2*AC2 <= M;AC2++){
	   		for(int s22=0;s22<=1;s22++){
	   			for(int s21=0;s21<=1;s21++){
	   				for(int s12=0;s12<=1;s12++){
	   					Arrays.fill(ans1,'X');
	   					Arrays.fill(ans2,'X');
	   					if(s22 == 1){
	   						ans2[m-1] = 'A';
	   						ans2[0] = 'C';
	   					}
	   					if(s21 == 1){
	   						ans2[m-1] = 'A';
	   						ans1[0] = 'C';
	   					}
	   					if(s12 == 1){
	   						ans1[n-1] = 'A';
	   						ans2[0] = 'C';
	   					}
	   					if(s22 == 1){
	   						if(ans2[m-1] != 'A')
	   							continue;
	   						if(ans2[0] != 'C')
	   							continue;
	   					}
	   					if(s21 == 1){
	   						if(ans2[m-1] != 'A')	continue;
	   						if(ans1[0] != 'C')	continue;
	   					}
	   					if(s12 == 1){
	   						if(ans1[n-1] != 'A')	continue;
	   						if(ans2[0] != 'C')	continue;
	   					}
	   					
	   					int c = AC2;
	   					for(int i=0;i<m-1 && c>0;i++){
	   						if(ans2[i] == 'X' && ans2[i+1] == 'X'){
	   							ans2[i] = 'A';
	   							ans2[i+1] = 'C';
	   							c--;
	   						}
	   					}
	   					if(c != 0)
	   						continue;
	   					long done = AC2 * s2[k] + s22 * S22[k] + s21 * S21[k] + s12 * S12[k];
	   					long left = x - done;
	   					if(left >= 0 && left % s1[k] == 0){
	   						int t = (int)(left/s1[k]);
	   						for(int i=0;i<n-1 && t > 0;i++){
	   							if(ans1[i] == 'X' && ans1[i+1] == 'X'){
	   								ans1[i] = 'A';
	   								ans1[i+1] = 'C';
	   								t--;
	   							}
	   						}
	   						if(t == 0){
	   							w.println(new String(ans1));
	   							w.println(new String(ans2));
	   							w.close();
	   							return;
	   						}
	   					}
	   				}
	   			}
	   		}
	   	}
	    
	    
		System.out.println("Happy new year!");
	}
	
	public static int ip(String s){
		return Integer.parseInt(s);
	}
	
	
}