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

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

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

for i in range(1,N+1):
    
    c = 1
    p = 1/N
    while c*i<K:
        c *= 2
        p /= 2
    ans += p
print(ans)