n,k = map(int,input().split())

ans = []
n_2 = 1 / n
for i in range(1,n+1):
    c = 0
    while i < k:
        c += 1
        i *= 2
    ans.append(n_2*(0.5**c))

print(sum(ans)) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k ans = [] ans [] n_2 = 1 / n n_2 1 / n 1 n for i in range(1,n+1):
    c = 0
    while i < k:
        c += 1
        i *= 2
    ans.append(n_2*(0.5**c)) i range(1,n+1) range 1 n+1 n 1 c = 0 c 0 while i < k:
        c += 1
        i *= 2
     i < k i k c += 1 c 1 i *= 2 i 2 ans.append(n_2*(0.5**c)) ans.append ans append n_2*(0.5**c) n_2 0.5**c 0.5 c print(sum(ans)) print sum(ans) sum ans n,k = map(int,input().split()) map(int,input().split()) n i *= 2 2 i n_2 = 1 / n 1 / n n_2 c += 1 1 c k = map(int,input().split()) map(int,input().split()) k ans = [] [] ans c = 0 0 c
n,k = map(int,input().split())

ans = []
n_2 = 1 / n
for i in range(1,n+1):
    c = 0
    while i < k:
        c += 1
        i *= 2
    ans.append(n_2*(0.5**c))

print(sum(ans))
