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