n, k = map(int, input().split()) 

import math

ans = 0
for i in range(1, n+1):
    if i < k:
        power = math.ceil(math.log2(k/i))
    else:
        power = 0
    ans += pow(0.5, power)
print(ans / n) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k import math math ans = 0 ans 0 for i in range(1, n+1):
    if i < k:
        power = math.ceil(math.log2(k/i))
    else:
        power = 0
    ans += pow(0.5, power) i range(1, n+1) range 1 n+1 n 1 if i < k:
        power = math.ceil(math.log2(k/i))
    else:
        power = 0
     i < k i k power = math.ceil(math.log2(k/i)) power math.ceil(math.log2(k/i)) math.ceil math ceil math.log2(k/i) math.log2 math log2 k/i k i power = 0 power 0 ans += pow(0.5, power) ans pow(0.5, power) pow 0.5 power print(ans / n) print ans / n ans n power = 0 0 power power = math.ceil(math.log2(k/i)) math.ceil(math.log2(k/i)) power k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n ans += pow(0.5, power) pow(0.5, power) ans ans = 0 0 ans
n, k = map(int, input().split()) 

import math

ans = 0
for i in range(1, n+1):
    if i < k:
        power = math.ceil(math.log2(k/i))
    else:
        power = 0
    ans += pow(0.5, power)
print(ans / n)