Mr. Tom wants to help war-affected people by giving them shirts. For this he collects shirt from those who really want to help. Actually, we all should have a responsibility to help people. We salute Mr. Tom for his plan. We should stop the war, it hurts :-(. Anyway now I'm telling the way of help planned by Mr. Tom.He managed a big box, in it, he stores the shirts. At any time There is two events to occur.
Can you guess how many shirts one can have?
Input starts with N denoting the number of occurrences.
Next, N lines describe the events with the format type A denoting the event type and the size of the shirt, respectively
1 <= N <= 1000
1 <= type <= 2
1 <= A <= 50
For each query of the second type print an integer denoting the number of shirts the war-affected people get. If there is no shirt with size A in the box simply print "Sorry".
5 1 1 1 2 1 3 2 2 2 1