Coins#2218

Coins

1 second
128 megabytes
Very easy

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.

Input

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.

Output

Print the minimum number of coins that need to be flipped.

Examples

Example 1

Loading
Loading