import math x = float(input()) den = 1 while not x.is_integer(): x *= 10 den *= 10 x = int(x) g = math.gcd(x, den) x //= g den //= g print(str(x) + '/' + str(den))