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

import math
ans=0
for i in range(1, N+1):
    ans+=1/N*(1/2)**max(0,-(-math.log2(K/i)//1))
    #print(i,ans, -(-math.log2(K/i)//1))

print(ans) 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):
    ans+=1/N*(1/2)**max(0,-(-math.log2(K/i)//1))
    #print(i,ans, -(-math.log2(K/i)//1)) i range(1, N+1) range 1 N+1 N 1 ans+=1/N*(1/2)**max(0,-(-math.log2(K/i)//1)) ans 1/N*(1/2)**max(0,-(-math.log2(K/i)//1)) 1/N 1 N (1/2)**max(0,-(-math.log2(K/i)//1)) 1/2 1 2 max(0,-(-math.log2(K/i)//1)) max 0 -(-math.log2(K/i)//1) -math.log2(K/i)//1 -math.log2(K/i) math.log2(K/i) math.log2 math log2 K/i K i 1 print(ans) print ans ans+=1/N*(1/2)**max(0,-(-math.log2(K/i)//1)) 1/N*(1/2)**max(0,-(-math.log2(K/i)//1)) ans ans=0 0 ans N,K=map(int,input().split()) map(int,input().split()) N K=map(int,input().split()) map(int,input().split()) K
N,K=map(int,input().split())

import math
ans=0
for i in range(1, N+1):
    ans+=1/N*(1/2)**max(0,-(-math.log2(K/i)//1))
    #print(i,ans, -(-math.log2(K/i)//1))

print(ans)