Equal numbers

Equal numbers. Given three integers, determine how many of them are equal to each other. The program must print one of these numbers: 3 (if all are the same), 2 (if two of them are equal to each other and the third is different) or 0 (if all numbers are different).

Input

Output

10
5
10

2

17
17
-9

2

4
-82
-82

2

5
2
4

0

-149
-146
-142

0

 

Leave a Reply

Your email address will not be published. Required fields are marked *