The first line contains the integers N, Q, U, and V. (1≤N,Q≤103, −5≤U,V≤5)
The second line contains the integers K1,K2,…,KN. (−102≤Ki≤102)
Each of the next Q lines contains one query as three integers C, A, and B. (0≤C≤1)
If C is 0, the query is of the first kind and 1≤A≤B≤N. If C is 1, the query is of the second kind and 1≤A≤N, −102≤B≤102.