There are N open boxes arranged in a row from left to right. Each box contains exactly two balls, and each ball is either white or black.
At first, a crane is above the leftmost box. You can control the crane with these commands.
The crane can hold at most two balls at the same time. There is no limit on how many balls a box may contain during the process.
The balls are sorted when all of the following conditions hold.
Output a shortest possible sequence of commands that sorts the balls.
Every command in your output must be executable. For example, the crane cannot move left from the leftmost box, and it cannot hold more than two balls.
The first line contains an integer N. 2 ≤ N ≤ 500.
The second line contains N strings describing the boxes from left to right.
Each string has length 2, and each character is B or C. B denotes a white ball, and C denotes a black ball.
Print all commands, one per line.
There may be more than one shortest valid command sequence, but every input is guaranteed to be sortable.