x = int(round(float(input())*10**9)) y = 10**9 from math import gcd g = gcd(x,y) print(f"{x//g}/{y//g}")