Consider a multiset A consisting of n elements: a_1,a_2,…,a_n.
Let us define two types of operations which can be performed on this multiset:
Your task is to perform q given operations in the given order and output the results of all operations of the first type.
The first line contains two integers n and q: the size of the multiset A and the number of queries (1≤n≤105, 1≤q≤106).
The second line contains n integers a_1,a_2,…,a_n (1≤a_i≤109): the elements of A.
Each of the next q lines describes a single operation. An operation is given as two integers t_i and x_i: the type and the parameter of the operation. It is guaranteed that t_i∈1,2. If t_i=1, then 1≤x_i≤n. If t_i=2, then 1≤x_i≤109.
It is guaranteed that there is at least one operation of type 1.
Please note that elements of A are given in arbitrary order.
For each operation of the first type, output the x_i-th element in non-decreasing order. Separate the answers with line breaks.