favorite We need a little bit of your help to keep things running, click on this banner to learn more

PP2. Week 1: March 1 - 7

What type of triangle?

Find the triangle type (equilateral, isosceles, scalene) if the lengths of its sides are given.


One line contains 3 integers - the lengths of triangle sides. The lengths of the sides do not exceed 100.


Print 1 if the triangle is equilateral, 2 if isosceles and 3 if scalene.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3 4 3
Output example #1
Source SFE-2010 Variant 5