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

p = 0
for i in range(1, N + 1):
    m = numpy.log2(K / i)
    
    if m < 0:
        m = 0
        
    p += 0.5 ** numpy.ceil(m)
    
print(p / N) import numpy numpy 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):
    m = numpy.log2(K / i)
    
    if m < 0:
        m = 0
        
    p += 0.5 ** numpy.ceil(m)
     i range(1, N + 1) range 1 N + 1 N 1 m = numpy.log2(K / i) m numpy.log2(K / i) numpy.log2 numpy log2 K / i K i if m < 0:
        m = 0
        
     m < 0 m 0 m = 0 m 0 p += 0.5 ** numpy.ceil(m) p 0.5 ** numpy.ceil(m) 0.5 numpy.ceil(m) numpy.ceil numpy ceil m print(p / N) print p / N p N K = map(int, input().split()) map(int, input().split()) K p += 0.5 ** numpy.ceil(m) 0.5 ** numpy.ceil(m) p N, K = map(int, input().split()) map(int, input().split()) N m = numpy.log2(K / i) numpy.log2(K / i) m m = 0 0 m p = 0 0 p
import numpy
N, K = map(int, input().split())

p = 0
for i in range(1, N + 1):
    m = numpy.log2(K / i)
    
    if m < 0:
        m = 0
        
    p += 0.5 ** numpy.ceil(m)
    
print(p / N)