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.
For every type- operation, the -th smallest element is guaranteed to exist.
The input is given in the following format.
For each type- operation, print the -th smallest element of on its own line.
Each operation is given in one of the following formats.