EasyRating 900
Make All Equal
Delete as few numbers as possible so that all remaining numbers are equal. Print how many to delete.
Input
n, then n integers.
Output
One integer.
Sample 1
Input
5 3 3 2 1 3
Output
2
Sample 2
Input
1 5
Output
0
Output appears here