N,K=map(int,input().split())
k = 0
res = 0
flag = True
for i in range(1,N+1):
  flag = True
  mid = 1/N
  k = i
  if k >=K:
    pass
  else:
    while k<K:
      mid = mid*0.5
      k = k*2
  res += mid
print(res) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K k = 0 k 0 res = 0 res 0 flag = True flag True for i in range(1,N+1):
  flag = True
  mid = 1/N
  k = i
  if k >=K:
    pass
  else:
    while k<K:
      mid = mid*0.5
      k = k*2
  res += mid i range(1,N+1) range 1 N+1 N 1 flag = True flag True mid = 1/N mid 1/N 1 N k = i k i if k >=K:
    pass
  else:
    while k<K:
      mid = mid*0.5
      k = k*2
   k >=K k K while k<K:
      mid = mid*0.5
      k = k*2
   k<K k K mid = mid*0.5 mid mid*0.5 mid 0.5 k = k*2 k k*2 k 2 res += mid res mid print(res) print res k = i i k k = 0 0 k res = 0 0 res flag = True True flag k = k*2 k*2 k mid = mid*0.5 mid*0.5 mid mid = 1/N 1/N mid K=map(int,input().split()) map(int,input().split()) K flag = True True flag res += mid mid res N,K=map(int,input().split()) map(int,input().split()) N
N,K=map(int,input().split())
k = 0
res = 0
flag = True
for i in range(1,N+1):
  flag = True
  mid = 1/N
  k = i
  if k >=K:
    pass
  else:
    while k<K:
      mid = mid*0.5
      k = k*2
  res += mid
print(res)