1. You are finally placed in your dream company and want to give ladoos to your friends.
2. But you can afford only one ladoo per day.
3. If you are unable to give ladoo to any of your friend you will loose friendship with them (if more than one friend demands for ladoo on same day).
4. Now your task is to tell how many friends you will be able to save.
Input Format
First line of every test case 'N', represents how many friends you have. Second line of every test case Ai, represents ith friend asks for ladoo in A[i]th-day.
Output Format
Print the integer(number if friends you can save).
Constraints
1<=N<=1000 1<=Ai<=1000
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
5 3 3 1 2 4
Output
4