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