문제
In preparation for the upcoming hoofball tournament, Farmer John is drilling his
At the beginning of the drill, Farmer John will pass several balls to different cows. When cow
Problem credits: Dhruv Rohatgi
입력
The first line of input contains
출력
Please output the minimum number of balls Farmer John must initially pass to the cows, so that every cow can hold a ball at least once.
예제
5
7 1 3 11 4
2
In the above example, Farmer John should pass a ball to the cow at
It can be seen that there is no single cow to whom Farmer John could initially pass a ball so that every cow would eventually be passed a ball.