There are coins on the table. Some of them are heads-up, while others are tails-up. Determine the minimum number of coins that need to be flipped so that all the coins end up facing the same side up.

The first line contains the number of coins (1 \leq n \leq 100).
Each of the following lines contains an integer: if the coin is tails-up, and if it is heads-up.
Print the minimum number of coins that need to be flipped.
Example 1