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