#D3799. Set: Search
Set: Search
Set: Search
For a set of integers, perform a sequence of the following operations. Note that each value in must be unique.
- insert(): Insert to and report the number of elements in after the operation.
- find(): Report the number of in (0 or 1).
Constraints
Input
The input is given in the following format.
:
Each query is given by
0
or
1
where the first digits 0 and 1 represent insert and find operations respectively.
Output
For each insert operation, print the number of elements in . For each find operation, print the number of specified elements in .
Example
Input
7 0 1 0 2 0 3 0 2 0 4 1 3 1 10
Output
1 2 3 3 4 1 0
inputFormat
Input
The input is given in the following format.
:
Each query is given by
0
or
1
where the first digits 0 and 1 represent insert and find operations respectively.
outputFormat
Output
For each insert operation, print the number of elements in . For each find operation, print the number of specified elements in .
Example
Input
7 0 1 0 2 0 3 0 2 0 4 1 3 1 10
Output
1 2 3 3 4 1 0
样例
7
0 1
0 2
0 3
0 2
0 4
1 3
1 10
1
2
3
3
4
1
0
</p>