from fractions import Fraction x = input() if float(x).is_integer(): print(x + '/1') else: ans = Fraction(x) print(ans)