SpaceX
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Elon Musk plans to send his spaceships to different planets. To do this, he has spaceships. Initially, it is known where each ship will be sent. The planets are numbered from to . As SpaceX’s chief space engineer, you are entitled to change the destination of any ship. For the minimum number of changes you need to make sure that all ships are sent to different planets.
Input
The first line contains two numbers and . Second line contains integers — the original ship destinations.
Output
Print the minimum number of changes.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 2K
Acceptance rate 25%