A dangerous game#7272

A dangerous game

1 second
256 megabytes
Hard

Alex got into serious trouble. He owes to the Mafia dollars, and the time of reckoning has almost come. Alex is well aware of the dangers of late return of the debt, so he wants to collect dollars at any cost.

However, at the moment he has only dollars. Alex's buddy, who learned about the problems, suggested a game — but this time for money. Alex has attempts to bet any amount from zero to the amount that he has — not necessarily even a whole number. With probability of % Alex wins double the bet amount, otherwise gets nothing. Alex does not care of how much money will remain, most importantly, to have dollars to pay off. Alex, of course, tries to play as well as he can. Find out what are the chances that Alex will return his debt.

0 \leq N \leq 10^9

0 \leq M \leq 10^9

1 \leq K \leq 12

0 \leq P \leq 100

Input

The single line contains four integers: , , and .

Output

You should print a single number — probability to collect enough money. Print the answer with an absolute error of not more than 10^{-7}.

Examples

Example 1

Loading
Loading