Given an array of numbers, you are required to process types of queries:
get(L, R, x) — Determine how many elements in the segment of the array are greater than or equal to .
set(L, R, x) — Set all elements in the segment of the array to the value .
reverse(L, R) — Reverse the order of elements in the segment of the array .
The input begins with the number (1 \le N \le 10^5), followed by an array of numbers. Next, you will receive the number of queries (1 \le M \le 10^5), followed by queries. The format of the queries can be inferred from the example provided. For all segments, it is guaranteed that 1 \le L \le R \le N. The initial numbers in the array and the numbers in the queries are integers ranging from to 10^9.
For each query of type get, output the result.
Example 1