The first line contains an integer $n (1 ≤ n ≤ 40 000)$ — the number of disks. The following line contains a sequence of n different integers $d_1, d_2, ..., d_n (1 ≤ d_k ≤ n)$ — the initial order of disks, bottom to top, on the rod in the upper-left corner.
Output $m$ lines where $m$ is the number of steps in your solution. The $k$-th line should contain four tokens $r_k, c_k, p_k, n_k$, describing the $k$-th step in your solution. The tokens should be as follows:
D or R denoting that we are transferring the disks to the rod directly below or directly to the right respectively,All steps have to be valid according to the rules above and solve the puzzle correctly.
6 1 6 5 4 3 2\n · · · · · \n
1 1 D 6 2 1 D 6 3 1 D 6 4 1 D 6 5 1 D 6 6 1 R 6 6 2 R 6 6 3 R 6 6 4 R 6 6 5 R 5 6 5 R 1· · · \n · · · \n · · · \n · · · \n · · · \n · · · \n · · · \n · · · \n · · · \n · · · \n · · · \n
In the example above, the first $9$ steps simply move all the disks, without reordering, to the rod in row $6$, column $5$ — immediately to the left of the target rod in the lower-right corner. In the following step, the stack of five disks from the top of the rod — $(6, 5, 4, 3, 2)$ bottom to top — are moved to the target rod. Finally, disk $1$ is moved to the target rod obtaining the target bottom-to-top order $(6, 5, 4, 3, 2, 1)$.