Module: Nested conditional statement. Difficult conditions


Problem

4 /14


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
# Input Output
1 1
2
3
0