N, K = map(int, input().split())

qs = 0
for i in range(1, N+1):
    if i >= K:
        qs += 1/N
    elif i < K:
        q = 1/N
        while i < K:
            q *= 1/2
            i *= 2
        qs += q
print(qs) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K qs = 0 qs 0 for i in range(1, N+1):
    if i >= K:
        qs += 1/N
    elif i < K:
        q = 1/N
        while i < K:
            q *= 1/2
            i *= 2
        qs += q i range(1, N+1) range 1 N+1 N 1 if i >= K:
        qs += 1/N
    elif i < K:
        q = 1/N
        while i < K:
            q *= 1/2
            i *= 2
        qs += q i >= K i K qs += 1/N qs 1/N 1 N elif i < K:
        q = 1/N
        while i < K:
            q *= 1/2
            i *= 2
        qs += q i < K i K q = 1/N q 1/N 1 N while i < K:
            q *= 1/2
            i *= 2
         i < K i K q *= 1/2 q 1/2 1 2 i *= 2 i 2 qs += q qs q print(qs) print qs qs = 0 0 qs N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K q *= 1/2 1/2 q i *= 2 2 i q = 1/N 1/N q qs += q q qs qs += 1/N 1/N qs
N, K = map(int, input().split())

qs = 0
for i in range(1, N+1):
    if i >= K:
        qs += 1/N
    elif i < K:
        q = 1/N
        while i < K:
            q *= 1/2
            i *= 2
        qs += q
print(qs)