Each city is famous...
"Roads aren't actually repaired,
but rather the potholes are relocated,
so that drivers find it harder to remember them."
Herb Shriner
The well-known saying about "fools and roads" is likely attributed to Nikolai Vasilyevich Gogol, who was born near the border of the Myrhorod and Poltava districts, almost at a crossroads, so to speak.
Last winter, roads became notorious in nearly every city across the country, and the events that unfolded in the spring align perfectly with the epigraph above.
If someone is eager to see their hometown featured in the "Famous Cities of Ukraine" section, they should select the "Roads" subsection and share a photo of the road from their hometown that they find most memorable... :)
Now, onto the task: On the journey from city A to city B, which spans S kilometers, the probability of losing a wheel on any given 1 km segment is p. What is the probability of completing the entire trip with the necessity of purchasing a new wheel, considering there is no spare tire in the trunk, as luck would have it?
Input
The input consists of a single line containing two numbers: the length of the road S (0 ≤ S ≤ 1000, where S is an integer) and the probability of losing a wheel on each kilometer of the route p (0 ≤ p ≤ 1).
Output
Output a single number, which is the solution to the problem, with a precision of at least 5 decimal places.