n,k = map(int,input().split())
p = 0
for i in range(1,n+1):
    m = i
    x = 0
    while m < k:
        m *= 2
        x += 1
    p += ((1 / 2) ** x) * (1 / n)
print(p) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k p = 0 p 0 for i in range(1,n+1):
    m = i
    x = 0
    while m < k:
        m *= 2
        x += 1
    p += ((1 / 2) ** x) * (1 / n) i range(1,n+1) range 1 n+1 n 1 m = i m i x = 0 x 0 while m < k:
        m *= 2
        x += 1
     m < k m k m *= 2 m 2 x += 1 x 1 p += ((1 / 2) ** x) * (1 / n) p ((1 / 2) ** x) * (1 / n) (1 / 2) ** x 1 / 2 1 2 x 1 / n 1 n print(p) print p x += 1 1 x p = 0 0 p x = 0 0 x p += ((1 / 2) ** x) * (1 / n) ((1 / 2) ** x) * (1 / n) p m = i i m n,k = map(int,input().split()) map(int,input().split()) n k = map(int,input().split()) map(int,input().split()) k m *= 2 2 m
n,k = map(int,input().split())
p = 0
for i in range(1,n+1):
    m = i
    x = 0
    while m < k:
        m *= 2
        x += 1
    p += ((1 / 2) ** x) * (1 / n)
print(p)