#P1888. P1888 三角函数

P1888 三角函数

Trigonometric Functions

Problem Description

Input a set of Pythagorean triple a,b,ca, b, c (a≠b≠ca \neq b \neq c), and output the sine of its smaller acute angle in fraction form (reduced to lowest terms).

(Terminology: a Pythagorean triple is a set of three positive integers that can form the three sides of a right triangle, satisfying a2+b2=c2a^2 + b^2 = c^2. The sine of an angle is the ratio of the opposite side to the hypotenuse in a right triangle. The sine of the smaller acute angle equals the shortest leg divided by the hypotenuse.)

Input Format

One line containing three positive integers, the Pythagorean triple a,b,ca, b, c (in no particular order).

Output Format

One line containing a fraction, the sine of the smaller acute angle.

Sample Input

3 5 4

Sample Output

3/5

Constraints

a,b,ca, b, c are positive integers, and 1≤a,b,c≤1091 \le a, b, c \le 10^9.