N,K = map(int,input().split())
cnt = 0
for i in range(1,N+1):
    for j in range(100):
        if i * 2**j >= K:
            cnt += 1/2**j
            break
print(cnt/N) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K cnt = 0 cnt 0 for i in range(1,N+1):
    for j in range(100):
        if i * 2**j >= K:
            cnt += 1/2**j
            break i range(1,N+1) range 1 N+1 N 1 for j in range(100):
        if i * 2**j >= K:
            cnt += 1/2**j
            break j range(100) range 100 if i * 2**j >= K:
            cnt += 1/2**j
            break i * 2**j >= K i * 2**j i 2**j 2 j K cnt += 1/2**j cnt 1/2**j 1 2**j 2 j break print(cnt/N) print cnt/N cnt N cnt += 1/2**j 1/2**j cnt K = map(int,input().split()) map(int,input().split()) K cnt = 0 0 cnt N,K = map(int,input().split()) map(int,input().split()) N
N,K = map(int,input().split())
cnt = 0
for i in range(1,N+1):
    for j in range(100):
        if i * 2**j >= K:
            cnt += 1/2**j
            break
print(cnt/N)