import math
n,k=map(int,input().split())
p=0
for i in range(1,n+1):
  if k/i<=1:
    p+=1
  else:
    thrw=math.ceil(math.log2(k/i))
    p+=0.5**thrw
print(p/n) import math math n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k p=0 p 0 for i in range(1,n+1):
  if k/i<=1:
    p+=1
  else:
    thrw=math.ceil(math.log2(k/i))
    p+=0.5**thrw i range(1,n+1) range 1 n+1 n 1 if k/i<=1:
    p+=1
  else:
    thrw=math.ceil(math.log2(k/i))
    p+=0.5**thrw k/i<=1 k/i k i 1 p+=1 p 1 thrw=math.ceil(math.log2(k/i)) thrw math.ceil(math.log2(k/i)) math.ceil math ceil math.log2(k/i) math.log2 math log2 k/i k i p+=0.5**thrw p 0.5**thrw 0.5 thrw print(p/n) print p/n p n p+=1 1 p p+=0.5**thrw 0.5**thrw p k=map(int,input().split()) map(int,input().split()) k n,k=map(int,input().split()) map(int,input().split()) n thrw=math.ceil(math.log2(k/i)) math.ceil(math.log2(k/i)) thrw p=0 0 p
import math
n,k=map(int,input().split())
p=0
for i in range(1,n+1):
  if k/i<=1:
    p+=1
  else:
    thrw=math.ceil(math.log2(k/i))
    p+=0.5**thrw
print(p/n)