from math import gcd x = float(input()) num = int(round(x * 10**8)) den = 10**8 g = gcd(num, den) num //= g den //= g print(num, "/", den, sep="")