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!
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;


public class D {	
	BufferedReader reader;
    StringTokenizer tokenizer;
    PrintWriter out;
    
	public void solve() throws IOException {				
		int K = nextInt();
		long X = nextLong();
		int N = nextInt();
		int M = nextInt();
		 
		String ans1 = "";
		String ans2 = "";
		
		boolean found = false;
		outer: for (int s1 = 0; s1 < 3; s1++) {
			for (int e1 = 0; e1 < 3; e1++) {				
				if (N == 1 && s1 != e1) continue;
				
				int have1 = N;
				if (s1 != 0) have1--;
				if (e1 != 2) have1--;
				int min1 = 0;
				int max1 = have1/2;
				if (N == 2 && s1 == 0 && e1 == 2) min1 = 1;
				
				for (int s2 = 0; s2 < 3; s2++) {
					for (int e2 = 0; e2 < 3; e2++) {
						if (M == 1 && s2 != e2) continue;
						
						int have2 = M;
						if (s2 != 0) have2--;
						if (e2 != 2) have2--;
						int min2 = 0;
						int max2 = have2/2;
						if (M == 2 && s2 == 0 && e2 == 2) min2 = 1;
												
						for (int c1 = min1; c1 <= max1; c1++) {
							for (int c2 = min2; c2 <= max2; c2++) {
										
								int cur1S = s1;
								int cur1E = e1;
								long cur1C = c1;
								int cur2S = s2;
								int cur2E = e2;
								long cur2C = c2;
								
								for (int k = 2; k < K; k++) {
									int cur3S = cur1S;
									int cur3E = cur2E;
									long cur3C = cur1C + cur2C;
									if (cur1E == 0 && cur2S == 2) cur3C++;
									
									cur1S = cur2S;
									cur1E = cur2E;
									cur1C = cur2C;
									cur2S = cur3S;
									cur2E = cur3E;
									cur2C = cur3C;									
								}				
								
//								out.println(s1 + ", " + e1 + ", " + c1 + " -- " + s2 + ", " + e2 + ", " + c2 + ": " + cur2C);
								
								if (cur2C == X) {
									found = true;
									ans1 = build(s1, e1, c1, N);
									ans2 = build(s2, e2, c2, M);									
									break outer;
								}
								
							}
						}						 
					}
				}
			}			
		}		
		
		if (found) {
			out.println(ans1);
			out.println(ans2);
			
//			String s1 = ans1;
//			String s2 = ans2;
//			for (int k = 2; k < K; k++) {
//				String s3 = s1 + s2;
//				s1 = s2;
//				s2 = s3;
//			}
//			long cnt = 0;
//			for (int i = 1; i < s2.length(); i++) {
//				if (s2.charAt(i) == 'C' && s2.charAt(i-1) == 'A') cnt++;
//			}
//			out.println(cnt);			
			
		} else {
			out.println("Happy new year!");
		}
		
	}
	
	public String build(int s, int e, int c, int length) {
		if (length == 1) {
			if (s == 0) return "A";
			else if(s == 1) return "B";
			else return "C";
		} else if(length == 2) {
			char cc1 = (char)( 'A' + s);
			char cc2 = (char)( 'A' + e);
			StringBuilder ssb = new StringBuilder();
			ssb.append(cc1);
			ssb.append(cc2);
			return ssb.toString();
		}

		StringBuilder sb = new StringBuilder();
		if (s == 0) {
			sb.append('A');
			if (c > 0) {
				sb.append('C');
				c--;
			}			
		} else if (s == 1) {
			sb.append('B');
		} else if (s == 2) {
			sb.append('C');
		}
		
		for (int i = 0; i < c; i++) {
			sb.append("AC");
		}
		for (int i = sb.length(); i < length-1; i++) {
			sb.append('B');
		}
		
		if (sb.length() == length) {
			return sb.toString();
		}
		
		if (e == 0) {
			sb.append('A');
		} else if (e == 1) {
			sb.append('B');
		} else if (e == 2) {
			sb.append('C');
		}
		
		if (sb.length() != length) {
			throw new RuntimeException();
		}
		
		return sb.toString();
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new D().run();
	}
	
	public void run() {
        try {
            reader = new BufferedReader(new InputStreamReader(System.in));
            tokenizer = null;
            out = new PrintWriter(System.out);
            solve();
            reader.close();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
    }

    int nextInt() throws IOException {
        return Integer.parseInt(nextToken());
    }

    long nextLong() throws IOException {
        return Long.parseLong(nextToken());
    }

    double nextDouble() throws IOException {
        return Double.parseDouble(nextToken());
    }

    String nextToken() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(reader.readLine());
        }
        return tokenizer.nextToken();
    }

}
