N, K = map(int, input().split())
p = 0
for i in range(1, N+1):
  if i>=K:
    p += 1/N
  else:
    c = 0
    while i<K:
      i *= 2
      c += 1
    p += (1/N)*(0.5)**c
print(p) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K p = 0 p 0 for i in range(1, N+1):
  if i>=K:
    p += 1/N
  else:
    c = 0
    while i<K:
      i *= 2
      c += 1
    p += (1/N)*(0.5)**c i range(1, N+1) range 1 N+1 N 1 if i>=K:
    p += 1/N
  else:
    c = 0
    while i<K:
      i *= 2
      c += 1
    p += (1/N)*(0.5)**c i>=K i K p += 1/N p 1/N 1 N c = 0 c 0 while i<K:
      i *= 2
      c += 1
     i<K i K i *= 2 i 2 c += 1 c 1 p += (1/N)*(0.5)**c p (1/N)*(0.5)**c 1/N 1 N (0.5)**c 0.5 c print(p) print p p += 1/N 1/N p p = 0 0 p p += (1/N)*(0.5)**c (1/N)*(0.5)**c p i *= 2 2 i K = map(int, input().split()) map(int, input().split()) K N, K = map(int, input().split()) map(int, input().split()) N c += 1 1 c c = 0 0 c
N, K = map(int, input().split())
p = 0
for i in range(1, N+1):
  if i>=K:
    p += 1/N
  else:
    c = 0
    while i<K:
      i *= 2
      c += 1
    p += (1/N)*(0.5)**c
print(p)