Matching numbers
Problem
Three integers are given. Determine how many of them match. The program should output one of the numbers: 3 (if all match), 2 (if two match), or 0 (if all numbers are different).
Input
Three integers are entered, one per line.
Imprint
Output the answer to the problem.
Examples