from decimal import Decimal from math import gcd x = Decimal(input()) den = 1 while x - int(x) != 0: x *= 10 den *= 10 x = int(x) g = gcd(x, den) x //= g den //= g print("%d/%d" % (x, den))