Pat Pat

After point swaps in an array, answer queries asking whether a subarray is nondecreasing.

Medium6Segment treeArrayNo attempts yetTime limit1sMemory limit256 MB

Problem

NN freshmen joined KAIST. They are numbered 1 to NN, and person ii has height AiA_i. At the start the freshmen stand in one line in order of their numbers.

Kang Hanpil wants to pat the freshmen XX times. On one pat he pats everyone from person LL to person RR. LL and RR change on every pat.

He wants every pat to be gentle, so for each integer jj with Lj<RL \le j < R he wants the height of person j+1j+1 to be no smaller than the height of person jj. If even one such jj fails that, Kang Hanpil gets angry on that pat. When L=RL = R there is no jj to check, so he does not get angry.

Some freshmen want to be patted and some do not, so between the pats person LL and person RR swap places YY times. LL and RR can change on every swap.

Given the number of freshmen and their heights, the pats, and the swaps, print whether Kang Hanpil gets angry on each pat.

Input

The first line contains NN (1N1000001 \le N \le 100000) and X+YX+Y (1X+Y1000001 \le X+Y \le 100000), separated by a space.

The second line contains NN integers AiA_i (1Ai1091 \le A_i \le 10^9), the heights.

Each of the next X+YX+Y lines contains three natural numbers QQ, LL, RR, separated by spaces. (QQ is 1 or 2, and 1LRN1 \le L \le R \le N.)

Q=1Q = 1 means Kang Hanpil pats everyone from person LL to person RR. Q=2Q = 2 means person LL and person RR swap places.

Output

Print XX lines.

On line ii, print HSS090 if Kang Hanpil gets angry on his ii-th pat, and CS204 if he does not.