p=0
n,k=map(int, input().split())
for i in range(1, n+1):
  q=1/n
  j=0
  while i*2**j<k:
    j=j+1
    q=q/2
  p=p+q
print(p) p=0 p 0 n,k=map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k for i in range(1, n+1):
  q=1/n
  j=0
  while i*2**j<k:
    j=j+1
    q=q/2
  p=p+q i range(1, n+1) range 1 n+1 n 1 q=1/n q 1/n 1 n j=0 j 0 while i*2**j<k:
    j=j+1
    q=q/2
   i*2**j<k i*2**j i 2**j 2 j k j=j+1 j j+1 j 1 q=q/2 q q/2 q 2 p=p+q p p+q p q print(p) print p k=map(int, input().split()) map(int, input().split()) k q=1/n 1/n q p=p+q p+q p q=q/2 q/2 q n,k=map(int, input().split()) map(int, input().split()) n p=0 0 p j=0 0 j j=j+1 j+1 j
p=0
n,k=map(int, input().split())
for i in range(1, n+1):
  q=1/n
  j=0
  while i*2**j<k:
    j=j+1
    q=q/2
  p=p+q
print(p)