
N, K = map(int, input().split())

cnt = 0
for n in range(1, N + 1):
    tmp = 0
    while n < K:
        n *= 2
        tmp += 1
    cnt += 1 / 2 ** tmp

print(cnt / N) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K cnt = 0 cnt 0 for n in range(1, N + 1):
    tmp = 0
    while n < K:
        n *= 2
        tmp += 1
    cnt += 1 / 2 ** tmp n range(1, N + 1) range 1 N + 1 N 1 tmp = 0 tmp 0 while n < K:
        n *= 2
        tmp += 1
     n < K n K n *= 2 n 2 tmp += 1 tmp 1 cnt += 1 / 2 ** tmp cnt 1 / 2 ** tmp 1 2 ** tmp 2 tmp print(cnt / N) print cnt / N cnt N N, K = map(int, input().split()) map(int, input().split()) N cnt = 0 0 cnt tmp = 0 0 tmp tmp += 1 1 tmp K = map(int, input().split()) map(int, input().split()) K cnt += 1 / 2 ** tmp 1 / 2 ** tmp cnt n *= 2 2 n

N, K = map(int, input().split())

cnt = 0
for n in range(1, N + 1):
    tmp = 0
    while n < K:
        n *= 2
        tmp += 1
    cnt += 1 / 2 ** tmp

print(cnt / N)
