N,K = map(int,input().split())

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

ans = 0
for n in range(1,N+1):
    k = 0
    m = n
    while m < K:
        m *= 2
        k += 1
    ans += 2**(-k)
print(ans / N)