from fractions import Fraction n=float(input()) if int(n)==n: print(str(int(n))+'/1') else: print(Fraction(n))