Buggy python submission (verdict: Runtime Error):
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2*cnt))

print(calc)

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K-1
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2*cnt))

print(calc)

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K-1
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K-1
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2*cnt))

print(calc)

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input())
 
calc = []
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K-1
    tmp*=2
    cnt+=1
  calc.append((1/N) * (1/(2*cnt)))

print(sum(calc))

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input())

calc = []
for i in range(1, N+1):
  dice = i
  result = 0
  count = 0
  while result <= K-1
    dice+=dice*2
    count+=1
  calc.append(1/N*(1/2)*count)

print(sum(calc))

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input())
 
for i in range(N):
  dice = i+1
  result = 0
  calc = []
  count = 0
  while result <= K-1
    dice+=dice*2
    count+=1
  calc.append(1/N*(1/2)*count)

print(sum(calc))

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)

Buggy python submission (verdict: Runtime Error):
N, K = map(int, input())

for i in range(N):
  dice = i+1
  result = 0
  calc = []
  count = 0
  while result <= K
    dice+=dice*2
    count+=1
  calc.append(1/N*(1/2)*count)

print(sum(calc))
  
  

Fixed submission:
N, K = map(int, input().split())
 
calc = 0
for i in range(1, N+1):
  tmp = i
  cnt = 0
  while tmp <= K - 1:
    tmp*=2
    cnt+=1
  calc += (1/N) * (1/(2**cnt))

print(calc)