#P1888. 三角函数

三角函数

Description

Given a Pythagorean triple a,b,cabca,b,c(a\neq b\neq c), output the sine of its smaller acute angle in fractional form. Reduce it to lowest terms.

Input Format

One line containing three positive integers, i.e., the Pythagorean triple a,b,ca,b,c (in any order).

Output Format

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

3 5 4
3/5

Hint

The testdata guarantees that a,b,ca,b,c are positive integers and [1,109]\in [1,10^9].

Translated by ChatGPT 5