Statement
Statement language
Initially, integers are given. Let be the set containing these integers. If the same value appears more than once, it is stored only once in the set.
Process operations in order. Each operation is one of the following three types.
- : Insert into . If is already in , nothing happens.
- : Erase from . If is not in , nothing happens.
For every type- operation, the -th smallest element is guaranteed to exist.
Input
The input is given in the following format.
Output
For each type- operation, print the -th smallest element of on its own line.
Constraints
- .
- .
- ().
Subtasks
Samples
Input
5 9
3 1 3 2 1
3 1
3 3
1 2
1 4
3 4
2 2
3 2
2 10
3 3
Output
1
3
4
3
4