SP8406 TEMPLEQ - Temple Queues

Description

![main-destinations-tirupati](http://farm6.static.flickr.com/5056/5472021008_bcb05d7fb5.jpg) The [Tirumala temple](http://en.wikipedia.org/wiki/Tirumala_Venkateswara_Temple) is the most visited place of worship in the world. As the number of pilgrims who visit the temple each day is very high, the head of the temple should keep monitoring the queue system. Today is another lovely day and he has started his work. There are **N** queues at the entrance of the temple and some of them are already filled with pilgrims. Each queue has a metal door at the beginning, which leads to the temple. When the door is opened, it allows only one pilgrim to get through it and it gets closed immediately after that. New pilgrims are rushing in to the queues and the head needs to monitor the current sizes of the queues and decide which doors to be opened. At any time, he wants to know how many queues currently have at least **X** pilgrims. He also decides an integer **Y** and wants to open the doors of all the queues having at least **Y** pilgrims at that time. You are the controller of the queue system and are following his instructions. Respond quickly and win yourself a big laddu (sweet) from him :) . Read the input section for rest of the details.

Input Format

The first line contains two integers N and Q. N - The number of queues \[ 1

Output Format

For each query of type "2 X" , print the answer in a new line.