Start: Jun, 22, 2019 13:00:00
阿力的最后一场难题
End: Jun, 22, 2019 16:00:00
Time elapsed:
Time remaining:

阿力的图案 1089

Time Limit:  1 Sec    Memory Limit:   256 MB
Submission:26     AC:10     Score:0


Description

Now give three parameters n, c1, c2 for the number of rows and two symbols respectively. I hope you print out a pattern consisting of c1 and c2, starting from the innermost circle and using c1 and c2 alternately (ie c1 is the center). Point), and the four corners of the outermost circle (if any) are empty (requires a space to be output).

Input

The input contains three parameters, respectively n , c1 , c2 , which represent the number of lines of the pattern and the symbols c1, c2. (1<=n<60, and n is an odd number)

Output

Corresponding pattern

Samples

input:
5 A B
output:
AAA ABBBA ABABA ABBBA AAA