LearnPy Hub
← Arena
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
solution.py
Output appears here
Matching Socks · Python Arena problem · LearnPy Hub