A=list(map(int,input().split()))
N=A[0]
K=A[1]
p=0
for i in range(1,N+1):
    count=0
    while i<=K-1:
        i=i*2
        count=count+1
    p=p+(1/2)**(count)
print(p/N) A=list(map(int,input().split())) A list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split N=A[0] N A[0] A 0 K=A[1] K A[1] A 1 p=0 p 0 for i in range(1,N+1):
    count=0
    while i<=K-1:
        i=i*2
        count=count+1
    p=p+(1/2)**(count) i range(1,N+1) range 1 N+1 N 1 count=0 count 0 while i<=K-1:
        i=i*2
        count=count+1
     i<=K-1 i K-1 K 1 i=i*2 i i*2 i 2 count=count+1 count count+1 count 1 p=p+(1/2)**(count) p p+(1/2)**(count) p (1/2)**(count) 1/2 1 2 count print(p/N) print p/N p N A=list(map(int,input().split())) list(map(int,input().split())) A count=count+1 count+1 count K=A[1] A[1] K count=0 0 count N=A[0] A[0] N i=i*2 i*2 i p=0 0 p p=p+(1/2)**(count) p+(1/2)**(count) p
A=list(map(int,input().split()))
N=A[0]
K=A[1]
p=0
for i in range(1,N+1):
    count=0
    while i<=K-1:
        i=i*2
        count=count+1
    p=p+(1/2)**(count)
print(p/N)