GTY has $ n $ gay friends. To manage them conveniently, every morning he ordered all his gay friends to stand in a line. Every gay friend has a characteristic value $ a_i $ , to express how manly or how girlish he is. You, as GTY's assistant, have to answer GTY's queries. In each of GTY's queries, GTY will give you a range $ [l, r] $ . Because of GTY's strange hobbies, he wants there is a permutation $ [1..r-l+1] $ in $ [l, r] $. You need to let him know if there is such a permutation or not.