How Many Are Equal? (Among Three Numbers)

Problem Statement

-

Input

Three integers are given on separate lines. Determine how many of them are equal.

Output

Output one of the following: 3 (if all numbers are equal), 2 (if two are equal), or 0 (if all numbers are different).

Example

[{'input': '1\n2\n2', 'output': '2'}]