You are given an array of size n. Initially, all the elements are zero. You are provided with q queries and each query is one of the following types:
Input format
Output format
For each query of type 4 or 5, print the answer.
Constraints
1≤n, q, X≤2×1051≤L≤R≤n
10 20 5 1 5 2 1 2 5 3 3 6 9 4 3 4 4 6 8 4 6 9 3 3 7 8 5 2 7 2 3 7 5 4 6 7 4 2 6 5 10 10 3 9 9 7 3 1 7 4 4 2 6 3 2 9 1 3 6 9 8 4 9 10 3 1 7 6 5 7 10
Here is the array after each query:
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 9 9 9 9 0 0 0 0
0 0 9 9 9 9 0 0 0 0
0 0 9 9 9 9 0 0 0 0
0 0 9 9 9 9 0 0 0 0
0 0 1 1 1 1 8 0 0 0
0 0 1 1 1 1 8 0 0 0
0 0 1 1 1 1 0 0 0 0
0 0 1 1 1 1 0 0 0 0
0 0 1 1 1 1 0 0 0 0
0 0 1 1 1 1 0 0 0 0
0 0 1 1 1 1 0 0 7 0
4 4 5 5 5 5 4 0 7 0
4 4 5 5 5 5 4 0 7 0
4 5 4 4 4 4 5 1 6 0
4 5 4 4 4 12 13 9 14 0
4 5 4 4 4 12 13 9 14 0
2 3 2 2 2 10 11 9 14 0
2 3 2 2 2 10 11 9 14 0