Alice and Bob are going to play a game. The rule of the game is as follows:
Alice's objective is to finish the game as late as possible, while Bob's is as soon as possible.
Initially, there are no monsters. You have to process Q queries of the following types:
Note that the game doesn't happen in reality, and the monsters don't disappear.
Input is given from Standard Input in the following format:
Q
Description of the 1-st query
Description of the 2-nd query
⋮
Description of the Q-th query
The description of each query is in one of the following formats:
Type 1: 1 X_i Y_i
Type 2: 2 K_i
For each query of the type 2, print the answer in a line.
After the 5-th query, there are 4 monsters whose HPs are 1 and 2 monsters whose HPs are 2.