n,k = map(int,input().split())
chance = 0
for i in range(1,1+n):
    dini = i
    j = 0
    while dini < k:
        dini *= 2
        j += 1
    chance += 0.5**j
print(chance/n) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k chance = 0 chance 0 for i in range(1,1+n):
    dini = i
    j = 0
    while dini < k:
        dini *= 2
        j += 1
    chance += 0.5**j i range(1,1+n) range 1 1+n 1 n dini = i dini i j = 0 j 0 while dini < k:
        dini *= 2
        j += 1
     dini < k dini k dini *= 2 dini 2 j += 1 j 1 chance += 0.5**j chance 0.5**j 0.5 j print(chance/n) print chance/n chance n dini = i i dini k = map(int,input().split()) map(int,input().split()) k chance = 0 0 chance dini *= 2 2 dini j = 0 0 j chance += 0.5**j 0.5**j chance j += 1 1 j n,k = map(int,input().split()) map(int,input().split()) n
n,k = map(int,input().split())
chance = 0
for i in range(1,1+n):
    dini = i
    j = 0
    while dini < k:
        dini *= 2
        j += 1
    chance += 0.5**j
print(chance/n)