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

Solution:
# -*- coding: utf-8 -*-
import sys

def make_string(k, k2string, s1, s2):
	if k in k2string:
		return k2string[k]
	if k == 1:
		k2string[k] = s1
	elif k == 2:
		k2string[k] = s2
	else:
		k2string[k] = make_string(k-2, k2string, s1, s2) + make_string(k-1, k2string, s1, s2)
	return k2string[k]

def count_comb(k, k2comb):
	if k in k2comb:
		return k2comb[k]
	if k == 1:
		k2comb[k] = ([0, 0, 0, 0, 1, 0], ('1', '1'))
	elif k == 2:
		k2comb[k] = ([0, 0, 0, 0, 0, 1], ('2', '2'))
	else:
		r_2 = count_comb(k-2, k2comb)
		r_1 = count_comb(k-1, k2comb)
		r = ([x+y for (x,y) in zip(r_2[0],r_1[0])], (r_2[1][0], r_1[1][1]))
		ss = r_2[1][1] + r_1[1][0]
		if ss == '11':
			r[0][0] += 1
		elif ss == '12':
			r[0][1] += 1
		elif ss == '21':
			r[0][2] += 1
		elif ss == '22':
			r[0][3] += 1
		k2comb[k] = r
	return k2comb[k]

def max_independent_ac(l, cStart, aEnd):
	if l <= 1:
		return 0
	elif (cStart and not aEnd) or (not cStart and aEnd):
		return (l-1) // 2
	elif cStart and aEnd:
		return (l-2) // 2
	else:
		return l // 2

def print_sequence(l, ac, cStart, aEnd):
	cStart = 1 if cStart else 0
	aEnd = 1 if aEnd else 0
	if cStart:
		print('C', end='')
	for i in range(ac):
		print('AC', end='')
	for i in range(l - 2*ac - cStart - aEnd):
		print('B', end='')
	if aEnd:
		print('A', end='')
	print()

def run_test(k, x, n, m):
	comb = count_comb(k, {})[0]
	for mask in range(16):
		v = [0, 0, 0, 0, 0, 0]
		if (mask & 1) and (mask & 2):
			v[0] = 1
		if (mask & 2) and (mask & 4):
			v[1] = 1
		if (mask & 1) and (mask & 8):
			v[2] = 1
		if (mask & 4) and (mask & 8):
			v[3] = 1
		if (n == 1 and v[0]) or (m == 1 and v[3]):
			continue
		max1 = max_independent_ac(n, mask & 1, mask & 2)
		max2 = max_independent_ac(m, mask & 4, mask & 8)
		for p in range(max1+1):
			for q in range(max2+1):
				v[4] = p
				v[5] = q
				if sum([x*y for (x,y) in zip(v,comb)]) == x:
					print_sequence(n, p, mask&1, mask&2)
					print_sequence(m, q, mask&4, mask&8)
					return
	print('Happy new year!')

k, x, n, m = (int(x) for x in sys.stdin.readline().split(' '))
run_test(k, x, n, m)