Sticks
Time limit1sMemory limit128 MB
Given three stick lengths, print 2 if they form an equilateral triangle, 1 if only a right triangle, and 0 otherwise.
Problem
Bajtuś found 3 sticks in the forest. He now wants to know whether he can build a right triangle or an equilateral triangle out of them. Bajtuś cannot break the sticks; he may only use each stick whole.
Input
The first line contains three integers , , (), the lengths of the first, second, and third stick respectively.
Output
Print a single integer: if Bajtuś can build neither a right triangle nor an equilateral triangle, if he can build only a right triangle, and if he can build only an equilateral triangle.