p = float(input()) ans = 1/(1-p) - 1 print(ans)