import math x = float(input()) assert x != 0 x = int(x * 10 ** 8) g = math.gcd(x, 10 ** 8) print(x // g, 10 ** 8 // g, sep="/")