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

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

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

print(answer/N)
