import decimal
n,k=map(int,input().split())
num1=1
num2=0
for i in range(20):
    if num1>=k:
        break
    num1*=2
    num2+=1
num=n*(2**num2)
num1=num2
num3=0
for i in range(1,n+1):
    if i*(2**(num2-1))>=k:
        num2-=1
    if i>=k:
        num3+=2**num1
    else:
        num3+=2**(num1-num2)
print(decimal.Decimal(num3/num)) import decimal decimal n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k num1=1 num1 1 num2=0 num2 0 for i in range(20):
    if num1>=k:
        break
    num1*=2
    num2+=1 i range(20) range 20 if num1>=k:
        break
     num1>=k num1 k break num1*=2 num1 2 num2+=1 num2 1 num=n*(2**num2) num n*(2**num2) n 2**num2 2 num2 num1=num2 num1 num2 num3=0 num3 0 for i in range(1,n+1):
    if i*(2**(num2-1))>=k:
        num2-=1
    if i>=k:
        num3+=2**num1
    else:
        num3+=2**(num1-num2) i range(1,n+1) range 1 n+1 n 1 if i*(2**(num2-1))>=k:
        num2-=1
     i*(2**(num2-1))>=k i*(2**(num2-1)) i 2**(num2-1) 2 num2-1 num2 1 k num2-=1 num2 1 if i>=k:
        num3+=2**num1
    else:
        num3+=2**(num1-num2) i>=k i k num3+=2**num1 num3 2**num1 2 num1 num3+=2**(num1-num2) num3 2**(num1-num2) 2 num1-num2 num1 num2 print(decimal.Decimal(num3/num)) print decimal.Decimal(num3/num) decimal.Decimal decimal Decimal num3/num num3 num k=map(int,input().split()) map(int,input().split()) k n,k=map(int,input().split()) map(int,input().split()) n num3+=2**num1 2**num1 num3 num2=0 0 num2 num1*=2 2 num1 num3=0 0 num3 num1=num2 num2 num1 num2-=1 1 num2 num3+=2**(num1-num2) 2**(num1-num2) num3 num1=1 1 num1 num2+=1 1 num2 num=n*(2**num2) n*(2**num2) num
import decimal
n,k=map(int,input().split())
num1=1
num2=0
for i in range(20):
    if num1>=k:
        break
    num1*=2
    num2+=1
num=n*(2**num2)
num1=num2
num3=0
for i in range(1,n+1):
    if i*(2**(num2-1))>=k:
        num2-=1
    if i>=k:
        num3+=2**num1
    else:
        num3+=2**(num1-num2)
print(decimal.Decimal(num3/num))
