N,K = map(int,input().split())
p = 0
for i in range(1,N+1):
    j = i
    total = 0
    while (j < K):
        total += 1
        j *= 2
    p += (0.5**total) / N
print(p) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K p = 0 p 0 for i in range(1,N+1):
    j = i
    total = 0
    while (j < K):
        total += 1
        j *= 2
    p += (0.5**total) / N i range(1,N+1) range 1 N+1 N 1 j = i j i total = 0 total 0 while (j < K):
        total += 1
        j *= 2
     j < K j K total += 1 total 1 j *= 2 j 2 p += (0.5**total) / N p (0.5**total) / N 0.5**total 0.5 total N print(p) print p K = map(int,input().split()) map(int,input().split()) K N,K = map(int,input().split()) map(int,input().split()) N total += 1 1 total j *= 2 2 j p += (0.5**total) / N (0.5**total) / N p j = i i j total = 0 0 total p = 0 0 p
N,K = map(int,input().split())
p = 0
for i in range(1,N+1):
    j = i
    total = 0
    while (j < K):
        total += 1
        j *= 2
    p += (0.5**total) / N
print(p)