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