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