import math def lcm(a,b): lcm=a*b//math.gcd(a,b) return lcm x=float(input()) x*=10**8 x=int(x) S=x B=10**8 gcd=math.gcd(S,B) print(str(S//gcd)+"/"+str(B//gcd))