#!/usr/bin/env python

N, K = map(int, input().split())
ans = 0

for i in range(1, N+1):
    j, now = 0, i
    while now < K :
        j+=1
        now *= 2
    ans+= 2**(-j)

print(ans/N) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K ans = 0 ans 0 for i in range(1, N+1):
    j, now = 0, i
    while now < K :
        j+=1
        now *= 2
    ans+= 2**(-j) i range(1, N+1) range 1 N+1 N 1 j, now = 0, i j 0 now i while now < K :
        j+=1
        now *= 2
     now < K now K j+=1 j 1 now *= 2 now 2 ans+= 2**(-j) ans 2**(-j) 2 -j j print(ans/N) print ans/N ans N N, K = map(int, input().split()) map(int, input().split()) N now = 0, i i now ans = 0 0 ans j+=1 1 j now *= 2 2 now ans+= 2**(-j) 2**(-j) ans K = map(int, input().split()) map(int, input().split()) K j, now = 0, i 0 j
#!/usr/bin/env python

N, K = map(int, input().split())
ans = 0

for i in range(1, N+1):
    j, now = 0, i
    while now < K :
        j+=1
        now *= 2
    ans+= 2**(-j)

print(ans/N)
