X = float(input()) S = int(X * 10 ** 8) B = 10 ** 8 import sys if S == 0: print(0,"/",1,sep = "") exit() def gcd(a,b): while True: r = a % b a = b b = r if r == 0: return a d = gcd(S,B) print(S // d,'/',B // d,sep = "")