p=float(input()) if p==0: print(0) else: print(p/(1-p))