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

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

ans=0
for i in range(1,n+1):
  num=i
  p=1/n
  if num>=k:
    ans+=p
    continue
  while num<k:
    num=num*2
    p=p*(1/2)
  ans+=p
  
print(ans)
