The first line contains the two integers $N (1 ≤ N ≤ 250000)$, the number of pieces, and $a (1 ≤ a ≤ N)$, the piece Leopold will eat first. The second line contains $N$ mutually distinct integers $1 ≤ d_1,...,d_N ≤ N$, the initial deliciousness values of the pieces. The third line contains $1 ≤ Q ≤ 500000$, the number of instructions to process. Each of the next $Q$ lines contains an instruction of one of the following two types:
E i e(the character “E” followed by two integers $1≤i ≤ N$ and $1≤e≤10$): an instruction of this type tells your program that piece $i$ is enhanced so that it becomes the unique $e$-th most delicious piece. The number of pieces that, before the enhancement, were more delicious than piece $i$ is guaranteed to be at least $e$.F b(the character “F” followed by an integer $1≤b≤ N$): an instruction of this type requests your program to tell how many pieces Leopold will eat before he eats piece $b$.