N, K = map(int, input().split())
ans = 0
for i in range(1, N+1):
    prob = 1 / N
    for _ in range(20):
        if i >= K:
            ans += prob
            break
        i *= 2
        prob /= 2
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(1, N+1):
    prob = 1 / N
    for _ in range(20):
        if i >= K:
            ans += prob
            break
        i *= 2
        prob /= 2 i range(1, N+1) range 1 N+1 N 1 prob = 1 / N prob 1 / N 1 N for _ in range(20):
        if i >= K:
            ans += prob
            break
        i *= 2
        prob /= 2 _ range(20) range 20 if i >= K:
            ans += prob
            break
         i >= K i K ans += prob ans prob break i *= 2 i 2 prob /= 2 prob 2 print(ans) print ans ans += prob prob ans N, K = map(int, input().split()) map(int, input().split()) N prob = 1 / N 1 / N prob ans = 0 0 ans K = map(int, input().split()) map(int, input().split()) K i *= 2 2 i prob /= 2 2 prob
N, K = map(int, input().split())
ans = 0
for i in range(1, N+1):
    prob = 1 / N
    for _ in range(20):
        if i >= K:
            ans += prob
            break
        i *= 2
        prob /= 2
print(ans)