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

for i in range(1, n+1):
    pp = 1/n;
    x = 1
    while i * x < k:
        x *= 2 
        pp *= 0.5
    p += pp
print(p)
 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):
    pp = 1/n;
    x = 1
    while i * x < k:
        x *= 2 
        pp *= 0.5
    p += pp i range(1, n+1) range 1 n+1 n 1 pp = 1/n pp 1/n 1 n x = 1 x 1 while i * x < k:
        x *= 2 
        pp *= 0.5
     i * x < k i * x i x k x *= 2 x 2 pp *= 0.5 pp 0.5 p += pp p pp print(p) print p k = map(int, input().split()) map(int, input().split()) k pp = 1/n 1/n pp pp *= 0.5 0.5 pp p = 0 0 p x *= 2 2 x p += pp pp p x = 1 1 x n, k = map(int, input().split()) map(int, input().split()) n
n, k = map(int, input().split())
p = 0

for i in range(1, n+1):
    pp = 1/n;
    x = 1
    while i * x < k:
        x *= 2 
        pp *= 0.5
    p += pp
print(p)

