import math
n , k = map(int, input().split())

res = 0
pi = 1 / n
for i in range(1, n + 1):
    i = k / i
    i = math.log2(i)
    if i <= 0:
        index = 0
    elif int(i) == i:
        index = int(i)
    else:
        index = int(i) + 1
    res += pi / (2 ** index)

print(res) import math math n , k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k res = 0 res 0 pi = 1 / n pi 1 / n 1 n for i in range(1, n + 1):
    i = k / i
    i = math.log2(i)
    if i <= 0:
        index = 0
    elif int(i) == i:
        index = int(i)
    else:
        index = int(i) + 1
    res += pi / (2 ** index) i range(1, n + 1) range 1 n + 1 n 1 i = k / i i k / i k i i = math.log2(i) i math.log2(i) math.log2 math log2 i if i <= 0:
        index = 0
    elif int(i) == i:
        index = int(i)
    else:
        index = int(i) + 1
     i <= 0 i 0 index = 0 index 0 elif int(i) == i:
        index = int(i)
     int(i) == i int(i) int i i index = int(i) index int(i) int i index = int(i) + 1 index int(i) + 1 int(i) int i 1 res += pi / (2 ** index) res pi / (2 ** index) pi 2 ** index 2 index print(res) print res i = math.log2(i) math.log2(i) i index = 0 0 index res += pi / (2 ** index) pi / (2 ** index) res pi = 1 / n 1 / n pi n , k = map(int, input().split()) map(int, input().split()) n index = int(i) int(i) index k = map(int, input().split()) map(int, input().split()) k index = int(i) + 1 int(i) + 1 index i = k / i k / i i res = 0 0 res
import math
n , k = map(int, input().split())

res = 0
pi = 1 / n
for i in range(1, n + 1):
    i = k / i
    i = math.log2(i)
    if i <= 0:
        index = 0
    elif int(i) == i:
        index = int(i)
    else:
        index = int(i) + 1
    res += pi / (2 ** index)

print(res)
