N,K = map(int,input().split())
tmp = 1
num_cnt = 0
while K > tmp :
  tmp *= 2
  num_cnt +=1
nums_list = []
for i in range(1,N+1):
  for j in range(num_cnt+1):
    if i*(2**j) >= K:
      nums_list.append(((1/2)**j))
      break
print(sum(nums_list)*(1/N)) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K tmp = 1 tmp 1 num_cnt = 0 num_cnt 0 while K > tmp :
  tmp *= 2
  num_cnt +=1 K > tmp K tmp tmp *= 2 tmp 2 num_cnt +=1 num_cnt 1 nums_list = [] nums_list [] for i in range(1,N+1):
  for j in range(num_cnt+1):
    if i*(2**j) >= K:
      nums_list.append(((1/2)**j))
      break i range(1,N+1) range 1 N+1 N 1 for j in range(num_cnt+1):
    if i*(2**j) >= K:
      nums_list.append(((1/2)**j))
      break j range(num_cnt+1) range num_cnt+1 num_cnt 1 if i*(2**j) >= K:
      nums_list.append(((1/2)**j))
      break i*(2**j) >= K i*(2**j) i 2**j 2 j K nums_list.append(((1/2)**j)) nums_list.append nums_list append (1/2)**j 1/2 1 2 j break print(sum(nums_list)*(1/N)) print sum(nums_list)*(1/N) sum(nums_list) sum nums_list 1/N 1 N nums_list = [] [] nums_list num_cnt +=1 1 num_cnt tmp *= 2 2 tmp N,K = map(int,input().split()) map(int,input().split()) N K = map(int,input().split()) map(int,input().split()) K tmp = 1 1 tmp num_cnt = 0 0 num_cnt
N,K = map(int,input().split())
tmp = 1
num_cnt = 0
while K > tmp :
  tmp *= 2
  num_cnt +=1
nums_list = []
for i in range(1,N+1):
  for j in range(num_cnt+1):
    if i*(2**j) >= K:
      nums_list.append(((1/2)**j))
      break
print(sum(nums_list)*(1/N))