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

ans = 0

for i in range(1, N+1):
    count = 0
    while i < K:
        i *= 2
        count += 1
    ans += 1 / (N * (2 ** count))

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

ans = 0

for i in range(1, N+1):
    count = 0
    while i < K:
        i *= 2
        count += 1
    ans += 1 / (N * (2 ** count))

print(ans)