let p = stdin.ReadLine() |> double p / (1. - p) |> printfn "%f"