from collections import Counter

n,k=list(map(int,input().split()))
enum=0
denom=2**20

for pip in range(1,n+1):
    cnt=0
    score=pip
    while score<k:
        score*=2
        cnt+=1
    
    enum+=2**(20-cnt)

print(enum/denom/n) from collections import Counter n,k=list(map(int,input().split())) n list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split k enum=0 enum 0 denom=2**20 denom 2**20 2 20 for pip in range(1,n+1):
    cnt=0
    score=pip
    while score<k:
        score*=2
        cnt+=1
    
    enum+=2**(20-cnt) pip range(1,n+1) range 1 n+1 n 1 cnt=0 cnt 0 score=pip score pip while score<k:
        score*=2
        cnt+=1
    
     score<k score k score*=2 score 2 cnt+=1 cnt 1 enum+=2**(20-cnt) enum 2**(20-cnt) 2 20-cnt 20 cnt print(enum/denom/n) print enum/denom/n enum/denom enum denom n denom=2**20 2**20 denom score=pip pip score score*=2 2 score enum=0 0 enum k=list(map(int,input().split())) list(map(int,input().split())) k enum+=2**(20-cnt) 2**(20-cnt) enum cnt+=1 1 cnt cnt=0 0 cnt n,k=list(map(int,input().split())) list(map(int,input().split())) n
from collections import Counter

n,k=list(map(int,input().split()))
enum=0
denom=2**20

for pip in range(1,n+1):
    cnt=0
    score=pip
    while score<k:
        score*=2
        cnt+=1
    
    enum+=2**(20-cnt)

print(enum/denom/n)