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

Programming Principles 1. Week 2. September 9 - 15. PART 1

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 seconds
Memory limit 128 MiB
Input example #1
3 4 3
Output example #1
Source SFE-2010 Variant 5