Noronha loves games and time travel, therefore, he created a game where you have to answer queries about the present and also about the past! He is a professional in this game and decided to play with you. Given a set initially empty, you must do one of the following operations:
Since you are smart (and lazy), you decided to write a program that plays the game for you.
The first line contains an integer $$$n$$$ $$$(1 \leq n \leq 10^5)$$$, the total number of operations.
The next $$$n$$$ lines describe the operations made. Each one of these lines represents an operation as follows
For each operation of type $$$2$$$,$$$3$$$ or $$$4$$$, print the the operation's answer.
7 1 10 2 1 2 2 3 2 4 2 1 5 2 6
10 10 10 10 10
2 1 3 4 1
3
6 1 1 1 10 2 2 3 3 4 4 4 1
10 1 11 1