Angle
Source of the task: dms.rs
Task statement
An angle in degrees, minutes and seconds is read from standard input (the angle is less than 180 degrees, but it is given so that the number of minutes and the number of seconds can be greater than 59).
Write a program that prints the total number of seconds of the angle, and whether the angle is acute, right or obtuse.
Input
One line contains three whole numbers separated by a space: the number of degrees, minutes and seconds of the angle.
Output
Print the total number of seconds, and then, separated by a space, the word acute, right or obtuse.
Example 1
Input
23 18 370
Output
84250 acute
The angle has 23 · 3600 + 18 · 60 + 370 = 84250 seconds. A right angle has 324000 seconds, so this angle is acute.
Example 2
Input
90 0 0
Output
324000 right
Example 3
Input
89 79 3
Output
325143 obtuse
The angle has 89 · 3600 + 79 · 60 + 3 = 325143 seconds, which is more than 324000, so the angle is obtuse.
