You are given an array A, consisting of N integers A1, A2, ..., AN.
You will be asked queries of following 3 types:
Note: Since the size of the input and output is large, please use fast I/O and memory accordingly.
Input format
It is guaranteed that there will be at least one query of type 3.
Output format
For each query of type 3, print a single integer denoting the answer to that query.
Constraints
1≤N,Q≤2∗1050≤Ai,X<2101≤Ti≤31≤L≤R≤N
Initially, we have the array, A=[1,2,3,4,5].