시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB37262165.625%

문제

You are one of 2k competitors invited to enter a single elimination tournament. You are ranked rth in the published rankings. Furthermore, you know that in any match between two players, the one ranked higher will always win.

The only source of uncertainty is the bracket. If every possible tournament bracket is equally likely, determine your expected number of wins in the tournament. Your expected number of wins is the average number of your wins over all possible tournament bracket orderings.

입력

The input consists of a single line containing the two space-separated integers k (1 ≤ k ≤ 20) and r (1 ≤ r ≤ 2k).

출력

Print, on a single line, your expected number of wins in the tournament, rounded and displayed to exactly five decimal places. The sixth digit after the decimal point of the exact answer will never be 4 or 5 (eliminating complex rounding considerations).

Be careful about very small or very large numbers during intermediate steps.

예제 입력 1

3 3

예제 출력 1

1.00000

예제 입력 2

20 130

예제 출력 2

11.65203