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

ans=0

baisuu=1
multiplier=0
count=[0]
for i in range(N,0,-1):
    while baisuu*i<K:
        baisuu*=2
        multiplier+=1
        count.append(0)
    
    count[multiplier]+=1

ans=0
for i in range(len(count)):
    ans+=count[i]*0.5**i

ans/=N
print(ans) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K ans=0 ans 0 baisuu=1 baisuu 1 multiplier=0 multiplier 0 count=[0] count [0] 0 for i in range(N,0,-1):
    while baisuu*i<K:
        baisuu*=2
        multiplier+=1
        count.append(0)
    
    count[multiplier]+=1 i range(N,0,-1) range N 0 -1 while baisuu*i<K:
        baisuu*=2
        multiplier+=1
        count.append(0)
    
     baisuu*i<K baisuu*i baisuu i K baisuu*=2 baisuu 2 multiplier+=1 multiplier 1 count.append(0) count.append count append 0 count[multiplier]+=1 count[multiplier] count multiplier 1 ans=0 ans 0 for i in range(len(count)):
    ans+=count[i]*0.5**i i range(len(count)) range len(count) len count ans+=count[i]*0.5**i ans count[i]*0.5**i count[i] count i 0.5**i 0.5 i ans/=N ans N print(ans) print ans K=map(int,input().split()) map(int,input().split()) K baisuu=1 1 baisuu ans=0 0 ans multiplier+=1 1 multiplier ans+=count[i]*0.5**i count[i]*0.5**i ans multiplier=0 0 multiplier N,K=map(int,input().split()) map(int,input().split()) N count=[0] [0] count ans=0 0 ans baisuu*=2 2 baisuu ans/=N N ans
N,K=map(int,input().split())

ans=0

baisuu=1
multiplier=0
count=[0]
for i in range(N,0,-1):
    while baisuu*i<K:
        baisuu*=2
        multiplier+=1
        count.append(0)
    
    count[multiplier]+=1

ans=0
for i in range(len(count)):
    ans+=count[i]*0.5**i

ans/=N
print(ans)