You are given an array a.
Process two types of queries:
The first line contains two integers n and q (1≤n,q≤106), the length of a and the number of queries, respectively.
The second line contains n integers a_i (0≤a_i<n), the elements of a.
q lines follow. Each of them has one of the following forms:
For each query of the second type print the corresponding m.