import math

n, k = map(int, input().split())
l = []
logk = math.log2(k)
for i in range(1, n + 1):
    p = math.ceil(logk - math.log2(i))
    p = p if p >= 0 else 0
    l.append(p)
maxl = max(l)
l = list(map(lambda x: 2**(maxl-x), l))
print(sum(l)/(n*2**maxl)) import math math n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k l = [] l [] logk = math.log2(k) logk math.log2(k) math.log2 math log2 k for i in range(1, n + 1):
    p = math.ceil(logk - math.log2(i))
    p = p if p >= 0 else 0
    l.append(p) i range(1, n + 1) range 1 n + 1 n 1 p = math.ceil(logk - math.log2(i)) p math.ceil(logk - math.log2(i)) math.ceil math ceil logk - math.log2(i) logk math.log2(i) math.log2 math log2 i p = p if p >= 0 else 0 p p if p >= 0 else 0 p >= 0 p 0 p 0 l.append(p) l.append l append p maxl = max(l) maxl max(l) max l l = list(map(lambda x: 2**(maxl-x), l)) l list(map(lambda x: 2**(maxl-x), l)) list map(lambda x: 2**(maxl-x), l) map lambda x: 2**(maxl-x) 2**(maxl-x) 2 maxl-x maxl x x l print(sum(l)/(n*2**maxl)) print sum(l)/(n*2**maxl) sum(l) sum l n*2**maxl n 2**maxl 2 maxl p = p if p >= 0 else 0 p if p >= 0 else 0 p l = [] [] l n, k = map(int, input().split()) map(int, input().split()) n logk = math.log2(k) math.log2(k) logk maxl = max(l) max(l) maxl p = math.ceil(logk - math.log2(i)) math.ceil(logk - math.log2(i)) p k = map(int, input().split()) map(int, input().split()) k l = list(map(lambda x: 2**(maxl-x), l)) list(map(lambda x: 2**(maxl-x), l)) l
import math

n, k = map(int, input().split())
l = []
logk = math.log2(k)
for i in range(1, n + 1):
    p = math.ceil(logk - math.log2(i))
    p = p if p >= 0 else 0
    l.append(p)
maxl = max(l)
l = list(map(lambda x: 2**(maxl-x), l))
print(sum(l)/(n*2**maxl))