You are given an array of n elements and an integer x. You must perform the following types of operations on the array:
For each query of type 1, print the index of the kth occurrence of x.
Input format
Output format
Print q integers as the answer to type 1 queries. If there are no indexes that satisfy the condition, then print −1.
Constraints
1≤n≤1061≤x≤1031≤ai≤1031≤q≤1061≤type≤21≤l≤r≤n1≤k≤1031≤index≤n1≤value≤103
Values in the Array : 2 1 3 1 1 4 5
Index of Element : 1 2 3 4 5 6 7