You are given an infinite 2D cardinal plane but this plane is not normal. And, you have many balls but the balls are not also normal. Upon each ball a coordinate value (x,y) is written which means that you can place this ball on this point on the plane. For a given value of k, the power of a ball is defined as f(k)=(|x+y|−k)2. Initially, you have N containers and each container has a ball. Now, you will perform two types of queries that are defined as:
For each query of type ′?′, find the maximum possible value of |fi(k)−fj(k)| for the given k.
Note: It is not necessary to select two balls from different containers.
Input format
Output format
For each query of type ′?′, print the maximum possible value of |fi(k)−fj(k)| for the given k in the new line.
Constraints
2≤N≤105
1≤Q≤2∗105
1≤i≤N
1≤l<r≤N
−108≤x,y,k≤108
-