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