n, k = map(int, input().split())
nums = []
ans = 0
for i in range(1, n+1):
    temp = i
    counter = 0
    while k > temp:
        temp *= 2
        counter += 1

    ans += 1/n * (1/2)**counter
print(ans) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k nums = [] nums [] ans = 0 ans 0 for i in range(1, n+1):
    temp = i
    counter = 0
    while k > temp:
        temp *= 2
        counter += 1

    ans += 1/n * (1/2)**counter i range(1, n+1) range 1 n+1 n 1 temp = i temp i counter = 0 counter 0 while k > temp:
        temp *= 2
        counter += 1

     k > temp k temp temp *= 2 temp 2 counter += 1 counter 1 ans += 1/n * (1/2)**counter ans 1/n * (1/2)**counter 1/n 1 n (1/2)**counter 1/2 1 2 counter print(ans) print ans nums = [] [] nums counter = 0 0 counter temp *= 2 2 temp temp = i i temp counter += 1 1 counter n, k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k ans += 1/n * (1/2)**counter 1/n * (1/2)**counter ans ans = 0 0 ans
n, k = map(int, input().split())
nums = []
ans = 0
for i in range(1, n+1):
    temp = i
    counter = 0
    while k > temp:
        temp *= 2
        counter += 1

    ans += 1/n * (1/2)**counter
print(ans)
