Yuno failed in a contest, so she was forced to wear a JK dress. Claris won the contest, so she bought some JK dresses for Yuno to wear. Each dress has a price. Because Claris has lots of money, she bought n dresses and put them in an array a_1,a_2,…,a_n.
Because Yuno loves data structures, she invented two kinds of operations:
1 l r x y": For all the dresses in a_l,a_l+1,…,a_r, if the price of a dress is x, change its price to y.2 l r k": Yuno wants to wear the k-th cheapest dress from a_l,a_l+1,…,a_r, so tell her the price of this dress.The first line of the input contains two integers n and m: the number of dresses and the number of operations (1≤n,m≤105). The second line contains n integers a_1,a_2,…,a_n: the prices of the dresses (1≤a_i≤n). Each of the following m lines describes an operation. If it is a modification, then the line is formatted as "1 l r x y", where 1≤l≤r≤n and 1≤x,y≤n. If it is a query, then the line is formatted as "2 l r k", where 1≤l≤r≤n and 1≤k≤r−l+1.
For each query, print a single line with a single integer: the answer to the query.