n, k = list(map(int, input().split()))

result = 0.0
for i in range(n):
  score = i + 1
  rate = 1.0
  while(score < k):
    rate = rate / 2
    score = score * 2
  result += rate

result = result / n
print(result) n, k = list(map(int, input().split())) n list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split k result = 0.0 result 0.0 for i in range(n):
  score = i + 1
  rate = 1.0
  while(score < k):
    rate = rate / 2
    score = score * 2
  result += rate i range(n) range n score = i + 1 score i + 1 i 1 rate = 1.0 rate 1.0 while(score < k):
    rate = rate / 2
    score = score * 2
   score < k score k rate = rate / 2 rate rate / 2 rate 2 score = score * 2 score score * 2 score 2 result += rate result rate result = result / n result result / n result n print(result) print result rate = 1.0 1.0 rate result = 0.0 0.0 result score = score * 2 score * 2 score result = result / n result / n result n, k = list(map(int, input().split())) list(map(int, input().split())) n k = list(map(int, input().split())) list(map(int, input().split())) k score = i + 1 i + 1 score rate = rate / 2 rate / 2 rate result += rate rate result
n, k = list(map(int, input().split()))

result = 0.0
for i in range(n):
  score = i + 1
  rate = 1.0
  while(score < k):
    rate = rate / 2
    score = score * 2
  result += rate

result = result / n
print(result)