X = float(input()) if X == 0: print("0/1") exit() for i in range(1,10**8+1): X2 = X*i if int(X2) != 0 and X2 == int(X2): print(str(int(X2))+"/"+str(i)) break