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

dice_num = 1

def get_prob(dice_num,k):
    i = 0
    while True:
        i += 1
        if i ==1:
            score = dice_num
        else:
            score *= 2
        if score >= k:
            prob = (1/2)**(i-1)
            break
    return prob

prob_all = 0
for i in range(n):
    prob_all += (get_prob(i+1,k))*(1/n)

print(prob_all) n, k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k dice_num = 1 dice_num 1 def get_prob(dice_num,k):
    i = 0
    while True:
        i += 1
        if i ==1:
            score = dice_num
        else:
            score *= 2
        if score >= k:
            prob = (1/2)**(i-1)
            break
    return prob get_prob i = 0 i 0 while True:
        i += 1
        if i ==1:
            score = dice_num
        else:
            score *= 2
        if score >= k:
            prob = (1/2)**(i-1)
            break
     True i += 1 i 1 if i ==1:
            score = dice_num
        else:
            score *= 2
         i ==1 i 1 score = dice_num score dice_num score *= 2 score 2 if score >= k:
            prob = (1/2)**(i-1)
            break
     score >= k score k prob = (1/2)**(i-1) prob (1/2)**(i-1) 1/2 1 2 i-1 i 1 break return prob prob dice_num dice_num k k prob_all = 0 prob_all 0 for i in range(n):
    prob_all += (get_prob(i+1,k))*(1/n) i range(n) range n prob_all += (get_prob(i+1,k))*(1/n) prob_all (get_prob(i+1,k))*(1/n) get_prob(i+1,k) get_prob i+1 i 1 k 1/n 1 n print(prob_all) print prob_all prob_all += (get_prob(i+1,k))*(1/n) (get_prob(i+1,k))*(1/n) prob_all prob_all = 0 0 prob_all k = map(int,input().split()) map(int,input().split()) k n, k = map(int,input().split()) map(int,input().split()) n dice_num = 1 1 dice_num def get_prob(dice_num,k):
    i = 0
    while True:
        i += 1
        if i ==1:
            score = dice_num
        else:
            score *= 2
        if score >= k:
            prob = (1/2)**(i-1)
            break
    return prob def get_prob(dice_num,k):
    i = 0
    while True:
        i += 1
        if i ==1:
            score = dice_num
        else:
            score *= 2
        if score >= k:
            prob = (1/2)**(i-1)
            break
    return prob get_prob
n, k = map(int,input().split())

dice_num = 1

def get_prob(dice_num,k):
    i = 0
    while True:
        i += 1
        if i ==1:
            score = dice_num
        else:
            score *= 2
        if score >= k:
            prob = (1/2)**(i-1)
            break
    return prob

prob_all = 0
for i in range(n):
    prob_all += (get_prob(i+1,k))*(1/n)

print(prob_all)