Alpaca manages slots numbered from to . Initially, every slot contains one integer, and slot contains .
Process the following queries.
1: Set the value in slot to . If the slot is empty, insert into it.2: Among the values currently present in slots through , print the product of the maximum and minimum values. If every slot in the range is empty, print nothing.3: Delete the value in slot . If the slot is already empty, do nothing.
Deleting a value does not change the indices of any other value. Process all queries in order.
Input
The input is given in the following format.
case case case
Each case is given in the following format.
Each query has one of the following forms.
Output
For every type 2 query in every test case, if the queried range contains at least one value, print the product of its maximum and minimum values on its own line.
If every slot in the queried range is empty, print nothing for that query.
Constraints
- .
- .
- .
- ().
- In a type
1query, and . - In a type
2query, . - In a type
3query, . - The sum of over all test cases does not exceed .
- The sum of over all test cases does not exceed .
Subtasks
Samples
입력
2
5 7
1 -2 3 4 -5
2 1 5
3 5
2 4 5
3 4
2 4 5
1 5 7
2 3 5
3 4
-1 0 2
2 1 3
3 2
1 2 -3
2 1 2
출력
-20
16
21
-2
3
For the third type 2 query of the first test case, both slots and are empty, so nothing is printed.