N,K = map(int,input().split())
result = 0
for i in range(1,N+1):
    prob = 1
    count = i 
    while count < K:
        prob *= 0.5
        count *= 2
    result += prob /N
print(result) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K result = 0 result 0 for i in range(1,N+1):
    prob = 1
    count = i 
    while count < K:
        prob *= 0.5
        count *= 2
    result += prob /N i range(1,N+1) range 1 N+1 N 1 prob = 1 prob 1 count = i count i while count < K:
        prob *= 0.5
        count *= 2
     count < K count K prob *= 0.5 prob 0.5 count *= 2 count 2 result += prob /N result prob /N prob N print(result) print result prob *= 0.5 0.5 prob K = map(int,input().split()) map(int,input().split()) K count = i i count prob = 1 1 prob result += prob /N prob /N result N,K = map(int,input().split()) map(int,input().split()) N count *= 2 2 count result = 0 0 result
N,K = map(int,input().split())
result = 0
for i in range(1,N+1):
    prob = 1
    count = i 
    while count < K:
        prob *= 0.5
        count *= 2
    result += prob /N
print(result)