You are given an array A that contains N numbers and M queries. The queries are of the following two types:
Input format
Output format
Print a response for each get queries. Refer to the explanation for a better understanding of the problem statement.
Constraints
1≤N,M≤2∗105
0≤a[i],value≤2∗109
1≤l≤r≤N
1≤position≤N
1≤k≤2∗109
Our first queries is of type get. If you write out all the numbers from 1 to 4 positions inclusive, you get the following sequence - 110023. Position 4 in this sequence is 0.
The second update queries. Change 100 to 3.
The third queries is of type get. Sequence - 1323. 4th position - 3.
The fourth query - we have 4 digits in the sequence, 4 < 100 - output -1.
The fifth queries is 13235. We have 2 for 3 positions.