As usual Gary and Flo are sitting at their favourite burger restaurant called Jim's Burgers. They want to treat themselves with delicious burger after an interesting day with lots of competitive programming. So they have ordered their burgers and are waiting for them. But with nothing to do, they get bored and decide to play a game.
The game is played on a sheet of paper with rows and columns and goes as follows:
Flo places his white lotus tile somewhere at the top row and Gary places a caterpillar tile somewhere on the bottom row. Flo begins the game and their turns alternate. Flo can move his tile to any of the 8 adjacent cells, while Gary's caterpillar tile can only move left or right, or stay at the same cell. Of course, they cannot step outside of the grid. Flo's goal is to catch Gary as fast as possible, that is, with the minimum number of moves, while Gary (with the caterpillar tile) has to survive for as long as possible.
Now they are wondering: If they place their tiles in the corresponding rows and some random columns, what is the expected number of moves Flo has to make to win the game (assuming they will play optimally)?
Can you help them answer this question?
Constraints
Input Format
You will be given two space separated integers and , denoting the number of rows and the number of columns on the board respectively.
Output Format
Output the answer in one line.
Note: The answer will be considered valid if it differs from the correct answer by at most .
Sample input
2 3
Sample output
1.2222222
Consider the pair as the starting column of the lotus and the starting column of the caterpillar respectively.
For and we get the following scenario.
will lead to 1 move. The remaining pairs and will lead to 2 moves. So the expected value is