In this task, you need to execute the following three types of queries:
+1 k query adds the element k to the set.
-1 k query removes the element k from the set.
0 k query finds the k-th largest element in the set according to ordering.
The first line contains an integer (n ≤ 10^5) indicating the number of queries. Each of the next lines contains queries in the format c k (c=+1, -1, 0 and |k| ≤ 10^9). It is guaranteed that at the time of the query, the k-th maximum exists in the set.
For each 0 k query, print the k-th largest element in the set on a new line.
Example 1