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

P = [1/N] * N

for i in range(N):
  score = i+1
  while score < K:
    score *= 2
    P[i-1] /= 2

print(sum(P)) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K P = [1/N] * N P [1/N] * N [1/N] 1/N 1 N N for i in range(N):
  score = i+1
  while score < K:
    score *= 2
    P[i-1] /= 2 i range(N) range N score = i+1 score i+1 i 1 while score < K:
    score *= 2
    P[i-1] /= 2 score < K score K score *= 2 score 2 P[i-1] /= 2 P[i-1] P i-1 i 1 2 print(sum(P)) print sum(P) sum P score = i+1 i+1 score N, K = map(int, input().split()) map(int, input().split()) N score *= 2 2 score P = [1/N] * N [1/N] * N P K = map(int, input().split()) map(int, input().split()) K
N, K = map(int, input().split())

P = [1/N] * N

for i in range(N):
  score = i+1
  while score < K:
    score *= 2
    P[i-1] /= 2

print(sum(P))