n, k = list(map(int, input().split()))

p = 0

for i in range(1, n+1):
    j = i
    q = 1 / n
    while j < k:
        q *= 1 / 2
        j *= 2
    p += q

print(p) n, k = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split k p = 0 p 0 for i in range(1, n+1):
    j = i
    q = 1 / n
    while j < k:
        q *= 1 / 2
        j *= 2
    p += q i range(1, n+1) range 1 n+1 n 1 j = i j i q = 1 / n q 1 / n 1 n while j < k:
        q *= 1 / 2
        j *= 2
     j < k j k q *= 1 / 2 q 1 / 2 1 2 j *= 2 j 2 p += q p q print(p) print p n, k = list(map(int, input().split())) list(map(int, input().split())) n p = 0 0 p q *= 1 / 2 1 / 2 q k = list(map(int, input().split())) list(map(int, input().split())) k j = i i j q = 1 / n 1 / n q p += q q p j *= 2 2 j
n, k = list(map(int, input().split()))

p = 0

for i in range(1, n+1):
    j = i
    q = 1 / n
    while j < k:
        q *= 1 / 2
        j *= 2
    p += q

print(p)