AlgoBazaAlgoBaza
Back to tasks

How many the same?

Beginner

Python for kids 路 Lesson 31: Module 2 summary: Decisions

Problem Statement

Read three numbers. Print 3 if they are all the same, 2 if exactly two are the same, and 1 if they are all different.

Input Format

Three whole numbers a, b and c, each on its own line (-1000 <= a, b, c <= 1000).

Output Format

One number - the result.

Examples
Example 1

Input

5
5
5

Output

3
Example 2

Input

5
2
5

Output

2
Example 3

Input

1
2
3

Output

1