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