There was a strange person who gave you a strange multiset which had a chip in it.
Now, you have to deal with q queries .A query has three types of operations.
operation 1 : ask the size of the multiset.
operation 2: add an integer X into the multiset
operation 3: delete all integers that equal to the integer X from the multiset
Note that the multiset will always run the function through its chip and use the value of the function as final integer when you implement operation 2 or operation 3.
First line contains a integer q --- number of queries.(
)
The following q lines contain operations.
There are three types of operations,(
)
The ask operations given as "1".
The add operations given as "2 X".
The delete operations given as "3 X".
For every ask operations , you should output an integer representing the size of the current multiset