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

per = 0

for i in range(1,n+1):
    a = 0
    while i<k:
        a += 1
        i *= 2
    per += (1/n) * (0.5**a)

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

per = 0

for i in range(1,n+1):
    a = 0
    while i<k:
        a += 1
        i *= 2
    per += (1/n) * (0.5**a)

print(per)