We, iuian develop a virtual vertical line with infinite length are numbered starting from zero from left to right. At every integer point of the vertical line, there is a bulb. Initially all the bulbs are turned on.
You are given Q queries of two types:
Input starts with an integer Q.
next Q line contains two integer t and n.
( 1<= Q,n <= 5000000, 1<= t <= 2 )
Print answers to queries of the type 2 in order they appear in the input.
Input | Output |
---|---|
7 2 5 1 2 1 3 1 4 1 5 2 4 2 5 | 0 2 1 |