n, k = map(int, input().split())
ans = 0
for i in range(1, n+1):
    sum = 1 / n
    jd = i
    while jd < k:
        sum *= 0.5
        jd *= 2
    ans += sum
print(ans) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k ans = 0 ans 0 for i in range(1, n+1):
    sum = 1 / n
    jd = i
    while jd < k:
        sum *= 0.5
        jd *= 2
    ans += sum i range(1, n+1) range 1 n+1 n 1 sum = 1 / n sum 1 / n 1 n jd = i jd i while jd < k:
        sum *= 0.5
        jd *= 2
     jd < k jd k sum *= 0.5 sum 0.5 jd *= 2 jd 2 ans += sum ans sum print(ans) print ans ans = 0 0 ans jd = i i jd sum *= 0.5 0.5 sum n, k = map(int, input().split()) map(int, input().split()) n ans += sum sum ans jd *= 2 2 jd sum = 1 / n 1 / n sum k = map(int, input().split()) map(int, input().split()) k
n, k = map(int, input().split())
ans = 0
for i in range(1, n+1):
    sum = 1 / n
    jd = i
    while jd < k:
        sum *= 0.5
        jd *= 2
    ans += sum
print(ans)