N, K = map(int, input().split())
ans = 0
for i in range(1, N + 1):
    j = 0
    while i * (2 ** j) < K:
        j += 1
    ans += 1/N * (0.5 ** j)
print(ans)

 N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K ans = 0 ans 0 for i in range(1, N + 1):
    j = 0
    while i * (2 ** j) < K:
        j += 1
    ans += 1/N * (0.5 ** j) i range(1, N + 1) range 1 N + 1 N 1 j = 0 j 0 while i * (2 ** j) < K:
        j += 1
     i * (2 ** j) < K i * (2 ** j) i 2 ** j 2 j K j += 1 j 1 ans += 1/N * (0.5 ** j) ans 1/N * (0.5 ** j) 1/N 1 N 0.5 ** j 0.5 j print(ans) print ans ans += 1/N * (0.5 ** j) 1/N * (0.5 ** j) ans j = 0 0 j K = map(int, input().split()) map(int, input().split()) K ans = 0 0 ans j += 1 1 j N, K = map(int, input().split()) map(int, input().split()) N
N, K = map(int, input().split())
ans = 0
for i in range(1, N + 1):
    j = 0
    while i * (2 ** j) < K:
        j += 1
    ans += 1/N * (0.5 ** j)
print(ans)


