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

ans = 0
for i in range(1,N+1):
    tmp = 1/N
    now = i
    while now < K:
        now *= 2
        tmp /= 2
    
    ans += tmp

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

ans = 0
for i in range(1,N+1):
    tmp = 1/N
    now = i
    while now < K:
        now *= 2
        tmp /= 2
    
    ans += tmp

print(ans)