Recently, grid with black and white squares. At any point, can flip all the squares in a single row or column, changing the respective squares from black to white and white to black. Furthermore, a flipper puzzle is considered solved when all the squares are black.

got into flipper puzzles! A flipper puzzle is anHowever, when

began working on his flipper puzzle the other day, he found that no matter how he flipped the rows and columns he couldn't solve it. After raging on the puzzle for a few hours he came to the conclusion that the puzzle had been tampered with and threw it in the trash.Now, seeing this as a perfect opportunity to have some fun,

took 's puzzle and began solving it. This time though, chose to write a program to help him accomplish his task. But due to his subpar programming skills, he wasn't able to finish the program. Can you help him?#### Input Specification

The first line of input contains the integer .

The next lines each contain space separated integers, with the integer on line denoting the value of , the number on the row on the final configuration.

#### Output Specification

If the puzzle is unsolvable, print `-1`

.

Otherwise, first output an integer , the number of moves needed to solve the puzzle. Next, output more lines, denoting the operations needed to solve the puzzle. If there are multiple answers, output any of them.

**Note that doesn't have to be minimal, it just has to be .**

Each operation must be one of the following:

`R x_i`

: Flip all squares in row`C x_i`

: Flip all squares in column

Note that the rows count from top to bottom and columns count from left to right.

#### Input Constraints

For all subtasks:

In your output,

For 1 out of 15 available marks,

For an additional 3 out of 15 additional marks,

#### Sample Input 1

```
3
1 0 0
1 0 0
0 1 1
```

#### Sample Output 1

```
2
R 3
C 1
```

*Note that the rows count from top to bottom and columns count from left to right*

#### Sample Input 2

```
3
0 0 0
1 0 0
0 0 0
```

#### Sample Output 2

`-1`

## Comments

.