14688 - Determine the catogories of triangles   

Description

Write a program that reads three positive integers a, b, and c, and determines whether the triangle with side lengths a, b, and c is an acute triangle, an obtuse triangle, or a right triangle.

  • If it is an acute triangle, output 1.

  • If it is an obtuse triangle, output 2.

  • If it is a right triangle, output 3.

You may assume that the input values a, b, and c can always form a valid triangle.

Input

three positive integers ab, and c

Output

If it is an acute triangle, output 1.

If it is an obtuse triangle, output 2.

If it is a right triangle, output 3.

Sample Input  Download

Sample Output  Download




Discuss