import math
a = [int(s) for s in input().split()]
saikoro = a[0]
tensu = a[1]
ans = float(0)

for i in range(1, saikoro+1):
    if i >= tensu:
        ans += 1
    else:
        temp = tensu / i
        temp2 = math.ceil(math.log(temp, 2))
        ans += (1 / int((2 ** temp2)))

print(ans / saikoro) import math math int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s a = [int(s) for s in input().split()] a [int(s) for s in input().split()] saikoro = a[0] saikoro a[0] a 0 tensu = a[1] tensu a[1] a 1 ans = float(0) ans float(0) float 0 for i in range(1, saikoro+1):
    if i >= tensu:
        ans += 1
    else:
        temp = tensu / i
        temp2 = math.ceil(math.log(temp, 2))
        ans += (1 / int((2 ** temp2))) i range(1, saikoro+1) range 1 saikoro+1 saikoro 1 if i >= tensu:
        ans += 1
    else:
        temp = tensu / i
        temp2 = math.ceil(math.log(temp, 2))
        ans += (1 / int((2 ** temp2))) i >= tensu i tensu ans += 1 ans 1 temp = tensu / i temp tensu / i tensu i temp2 = math.ceil(math.log(temp, 2)) temp2 math.ceil(math.log(temp, 2)) math.ceil math ceil math.log(temp, 2) math.log math log temp 2 ans += (1 / int((2 ** temp2))) ans 1 / int((2 ** temp2)) 1 int((2 ** temp2)) int 2 ** temp2 2 temp2 print(ans / saikoro) print ans / saikoro ans saikoro saikoro = a[0] a[0] saikoro tensu = a[1] a[1] tensu ans = float(0) float(0) ans temp = tensu / i tensu / i temp temp2 = math.ceil(math.log(temp, 2)) math.ceil(math.log(temp, 2)) temp2 a = [int(s) for s in input().split()] [int(s) for s in input().split()] a ans += 1 1 ans ans += (1 / int((2 ** temp2))) 1 / int((2 ** temp2)) ans
import math
a = [int(s) for s in input().split()]
saikoro = a[0]
tensu = a[1]
ans = float(0)

for i in range(1, saikoro+1):
    if i >= tensu:
        ans += 1
    else:
        temp = tensu / i
        temp2 = math.ceil(math.log(temp, 2))
        ans += (1 / int((2 ** temp2)))

print(ans / saikoro)