P1888 Trigonometric Functions

Description

Given a Pythagorean triple $a,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,c$ (in any order).

Output Format

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

Explanation/Hint

The testdata guarantees that $a,b,c$ are positive integers and $\in [1,10^9]$. Translated by ChatGPT 5