N,K = map(int,input().split())

p = 0
q = 0
for j in range(N,0,-1):
  while j*(2**q) < K:
    q += 1
  p += 0.5**q
print(p*(1/N)) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K p = 0 p 0 q = 0 q 0 for j in range(N,0,-1):
  while j*(2**q) < K:
    q += 1
  p += 0.5**q j range(N,0,-1) range N 0 -1 while j*(2**q) < K:
    q += 1
   j*(2**q) < K j*(2**q) j 2**q 2 q K q += 1 q 1 p += 0.5**q p 0.5**q 0.5 q print(p*(1/N)) print p*(1/N) p 1/N 1 N N,K = map(int,input().split()) map(int,input().split()) N p = 0 0 p q = 0 0 q p += 0.5**q 0.5**q p K = map(int,input().split()) map(int,input().split()) K q += 1 1 q
N,K = map(int,input().split())

p = 0
q = 0
for j in range(N,0,-1):
  while j*(2**q) < K:
    q += 1
  p += 0.5**q
print(p*(1/N))