Rimuru Tempest, the founder of the country Tempest, has found a new hobby. He likes to sculpt random shapes that come to his mind.
Initially, Rimuru Tempest has sculpted shapes, writing an integer on the shape. The point of this is to have different numbers in total, except... he made a mistake. He may have less than or more than unique numbers!
As a servant of the almighty Rimuru Tempest, you cannot disappoint your King. Can you find the minimum number of shapes that need to have their numbers rewritten to have different numbers?
Constraints
Input Specification
The first line of input will contain two integers, and , each separated by a space.
The next line of input will contain space separated integers, , such that the input is given as .
Output Specification
You are to print a single integer, the minimum number of shapes that you need to rewrite the integers on them.
Sample Input 1
5 2
1 1 2 2 5
Sample Output 1
1
Comments