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
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