In recent years, CCPC has developed rapidly and gained a large number of competitors .One contestant designed a design called CCPC Windows .The 1-st order CCPC window is shown in the figure:
And the 2-nd order CCPC window is shown in the figure:
We can easily find that the window of CCPC of order
And now I have an order
The input file contains
The first line of input file is an integer
Then the
3 1 2 3
CC PC CCCC PCPC PPCC CPPC CCCCCCCC PCPCPCPC PPCCPPCC CPPCCPPC PPPPCCCC CPCPPCPC CCPPPPCC PCCPCPPC