N,K=map(int,input().split())
ans=0
for i in range(N):
    temp=K/(i+1)
    for j in range(100):
        if 2**(j)>=temp:
            break
    ans+=(1/N)*(1/2)**j
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 for i in range(N):
    temp=K/(i+1)
    for j in range(100):
        if 2**(j)>=temp:
            break
    ans+=(1/N)*(1/2)**j i range(N) range N temp=K/(i+1) temp K/(i+1) K i+1 i 1 for j in range(100):
        if 2**(j)>=temp:
            break
     j range(100) range 100 if 2**(j)>=temp:
            break
     2**(j)>=temp 2**(j) 2 j temp break ans+=(1/N)*(1/2)**j ans (1/N)*(1/2)**j 1/N 1 N (1/2)**j 1/2 1 2 j print(ans) print ans ans=0 0 ans temp=K/(i+1) K/(i+1) temp K=map(int,input().split()) map(int,input().split()) K ans+=(1/N)*(1/2)**j (1/N)*(1/2)**j ans N,K=map(int,input().split()) map(int,input().split()) N
N,K=map(int,input().split())
ans=0
for i in range(N):
    temp=K/(i+1)
    for j in range(100):
        if 2**(j)>=temp:
            break
    ans+=(1/N)*(1/2)**j
print(ans)
