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