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