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