Bob and Alice are two friends, they have an array consisting of integers, . Alice likes the arrays in which if element is present it must have exactly or zero occurrences. So, Bob has decided to convert this array to an array which Alice likes. To do that, he can perform the following two operations:
Find the minimum number of operations Bob has to perform so that array is liked by Alice.
Input format
Output format
Print lines. For each test case:
Constraints
The sum of over all test cases does not exceed 200000.
According to the defination: 1 should have exactly one or zero occurence, 2 should have two or zero occurences and 3 should have three or zero occurences.
So for three, we have two options, either we remove both occurences or add one occurence, it will be optimal to add one occurence.