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.Deleting a value does not change the indices of any other value. Process all queries in order.
The input is given in the following format.
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.
For the third type 2 query of the first test case, both slots and are empty, so nothing is printed.
3 : Delete the value in slot . If the slot is already empty, do nothing.Each case is given in the following format.
Each query has one of the following forms.
1 query, and .2 query, .3 query, .| 3 |
| 50 |
No additional constraints. |