You are given two permutations A and B of size n. You want to transform A to B in no more than n operations of the following kind:
Note that you don't have to minimize the number of operations, any sequence of operations of length not more than n is ok.
The first line contains one integer n (1≤n≤500) --- the sizes of both permutations.
The second line contains the permutation A_1,A_2,…,A_n.
The third line contains the permutation B_1,B_2,…,B_n.
On the first line print one integer m (0≤m≤n) --- the number of operations.
On the next m lines print the descriptions of operation. One description has a form l_i r_i t_i (1≤l_i≤r_i≤n, t_i is 'I' or 'D') and means sort the subsegment \[l_i;r_i] in (I)ncreasing or (D)ecreasing order.
If there are different solutions any one will be accepted. It is guaranteed that there is at least one solution.