You are given an array A consisting of N positive integers. You are also given Q queries of the following type:
You are given T test cases.
Warning: Use fast I/O Methods.
Input format
Output format
For each test case (in a separate line), print the answers corresponding to the queries 2 L R K in a single line.
Constraints
1≤T≤10001≤N≤4×1051≤Ai<2201≤Q≤1051≤L≤R≤N1≤X<2201≤K≤109Sum of N over all test cases does not exceed 4×105Sum of Q over all test cases does not exceed 105There is atleast one query of the type 2 L R K in each test case
In the first test case, we have N=4,A=[4,2,3,1],Q=3. Let's look at the queries:
In the second test case, we have N=3,A=[2,1,1],Q=1. Let's look at the queries: