EasyRating 900
Matching Socks
Socks are given by colour number. How many matching pairs can be made?
Input
n, then n colours.
Output
One integer.
Sample 1
Input
9 10 20 20 10 10 30 50 10 20
Output
3
Sample 2
Input
1 4
Output
0
Output appears heren, then n colours.
One integer.
9 10 20 20 10 10 30 50 10 20
3
1 4
0
Output appears here