N,K=map(int,input().split())
ans=0
for i in range(1,N+1):
    x=i
    p=1
    while x<K:
        p/=2
        x<<=1
    ans+=p
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):
    x=i
    p=1
    while x<K:
        p/=2
        x<<=1
    ans+=p i range(1,N+1) range 1 N+1 N 1 x=i x i p=1 p 1 while x<K:
        p/=2
        x<<=1
     x<K x K p/=2 p 2 x<<=1 x 1 ans+=p ans p print(ans/N) print ans/N ans N K=map(int,input().split()) map(int,input().split()) K ans=0 0 ans p=1 1 p p/=2 2 p N,K=map(int,input().split()) map(int,input().split()) N x=i i x ans+=p p ans x<<=1 1 x
N,K=map(int,input().split())
ans=0
for i in range(1,N+1):
    x=i
    p=1
    while x<K:
        p/=2
        x<<=1
    ans+=p
print(ans/N)
