N,K=map(int,input().split())
ans=0
for i in range(N):
    prob=1/N
    temp=i+1
    while temp<K:
        temp*=2
        prob*=0.5
    ans+=prob

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):
    prob=1/N
    temp=i+1
    while temp<K:
        temp*=2
        prob*=0.5
    ans+=prob i range(N) range N prob=1/N prob 1/N 1 N temp=i+1 temp i+1 i 1 while temp<K:
        temp*=2
        prob*=0.5
     temp<K temp K temp*=2 temp 2 prob*=0.5 prob 0.5 ans+=prob ans prob print(ans) print ans ans=0 0 ans prob*=0.5 0.5 prob prob=1/N 1/N prob temp*=2 2 temp temp=i+1 i+1 temp ans+=prob prob 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())
ans=0
for i in range(N):
    prob=1/N
    temp=i+1
    while temp<K:
        temp*=2
        prob*=0.5
    ans+=prob

print(ans)