The player starts with and must consecutively answer questions. Before each question, the player can:
stop the game and take the money currently in hand;
answer the question. If the answer is incorrect, the player leaves the game with nothing. If the answer is correct, the amount of money doubles, and the game proceeds to the next question.
After correctly answering the last question, the player keeps the winnings. The player's goal is to maximize the expected amount of money won.
For each individual question, the player answers correctly with probability . Assume that is uniformly distributed over the interval .
Each line represents a separate test case and contains two numbers: an integer (1 \leq n \leq 30) and a real number (0 \leq t \leq 1). The last line contains two zeros and should not be processed.
For each test case, print on a separate line the maximum expected amount of money the player can win under the optimal strategy. Print the answer with three decimal digits.
Example 1