Kinder Surprise
InterviewTime limit1sMemory limit64 MB
Given n hippo statuette names with some repeats, output how many of the n statuettes are still missing, which is n minus the number of distinct names.
Problem
"Kinder Surprise" is a chocolate egg with a toy or a souvenir inside. You never know what is inside this time!
Recently little Pasha discovered that each egg from the new series of "Kinder Surprise" contains a hippo statuette. There are hippo statuettes in total, and Pasha wants to collect them all.
Without thinking twice, Pasha bought "Kinder Surprise" eggs from the new series. Then he was completely disappointed by something he did not expect: some of the hippo statuettes were identical. That was the real surprise!
After his grief, Pasha decided to find how many hippo statuettes he has yet to collect. Help him solve this problem.
Input
The first line contains an integer ().
The following lines describe the hippo statuettes, one per line. The description of the -th statuette is a string of length between 1 and 20 that contains small Latin letters and underscores (_). Two statuettes are identical if and only if their descriptions are equal.
It is guaranteed that at least two statuettes are identical.
Output
Output one integer: the number of hippo statuettes that Pasha has yet to collect.