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