import math

n, k = map(int, input().split())
ans = 0
x = [max(0, math.ceil(math.log2(k / i))) for i in range(1, n + 1)]
for i in x:
    ans += ((2 ** i) * n) ** -1 
print(ans) import math math n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k ans = 0 ans 0 max(0, math.ceil(math.log2(k / i))) for i in range(1, n + 1) for i in range(1, n + 1) i range(1, n + 1) range 1 n + 1 n 1 for i in range(1, n + 1) max(0, math.ceil(math.log2(k / i))) max 0 math.ceil(math.log2(k / i)) math.ceil math ceil math.log2(k / i) math.log2 math log2 k / i k i x = [max(0, math.ceil(math.log2(k / i))) for i in range(1, n + 1)] x [max(0, math.ceil(math.log2(k / i))) for i in range(1, n + 1)] for i in x:
    ans += ((2 ** i) * n) ** -1  i x ans += ((2 ** i) * n) ** -1 ans ((2 ** i) * n) ** -1 (2 ** i) * n 2 ** i 2 i n -1 print(ans) print ans n, k = map(int, input().split()) map(int, input().split()) n x = [max(0, math.ceil(math.log2(k / i))) for i in range(1, n + 1)] [max(0, math.ceil(math.log2(k / i))) for i in range(1, n + 1)] x ans = 0 0 ans ans += ((2 ** i) * n) ** -1 ((2 ** i) * n) ** -1 ans k = map(int, input().split()) map(int, input().split()) k
import math

n, k = map(int, input().split())
ans = 0
x = [max(0, math.ceil(math.log2(k / i))) for i in range(1, n + 1)]
for i in x:
    ans += ((2 ** i) * n) ** -1 
print(ans)