import math

n,k = map(int,input().split(' '))
p = 0

for i in range(1,n+1):
    if i > k:
        x = 0
    else:
        x = math.ceil(math.log2(k/i))
    p += 1/((2**x)*n)

print(p) import math math n,k = map(int,input().split(' ')) n map(int,input().split(' ')) map int input().split(' ') ().split () input split ' ' k p = 0 p 0 for i in range(1,n+1):
    if i > k:
        x = 0
    else:
        x = math.ceil(math.log2(k/i))
    p += 1/((2**x)*n) i range(1,n+1) range 1 n+1 n 1 if i > k:
        x = 0
    else:
        x = math.ceil(math.log2(k/i))
     i > k i k x = 0 x 0 x = math.ceil(math.log2(k/i)) x math.ceil(math.log2(k/i)) math.ceil math ceil math.log2(k/i) math.log2 math log2 k/i k i p += 1/((2**x)*n) p 1/((2**x)*n) 1 (2**x)*n 2**x 2 x n print(p) print p k = map(int,input().split(' ')) map(int,input().split(' ')) k p = 0 0 p n,k = map(int,input().split(' ')) map(int,input().split(' ')) n x = 0 0 x x = math.ceil(math.log2(k/i)) math.ceil(math.log2(k/i)) x p += 1/((2**x)*n) 1/((2**x)*n) p
import math

n,k = map(int,input().split(' '))
p = 0

for i in range(1,n+1):
    if i > k:
        x = 0
    else:
        x = math.ceil(math.log2(k/i))
    p += 1/((2**x)*n)

print(p)