N, K = map(int,input().split())
ans = 0
for n in range(1,N+1):
    score = n
    coin = 0
    while(score < K):
        coin += 1
        score *= 2
    ans += 1/(N*2**coin)

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 n in range(1,N+1):
    score = n
    coin = 0
    while(score < K):
        coin += 1
        score *= 2
    ans += 1/(N*2**coin) n range(1,N+1) range 1 N+1 N 1 score = n score n coin = 0 coin 0 while(score < K):
        coin += 1
        score *= 2
     score < K score K coin += 1 coin 1 score *= 2 score 2 ans += 1/(N*2**coin) ans 1/(N*2**coin) 1 N*2**coin N 2**coin 2 coin print(ans) print ans K = map(int,input().split()) map(int,input().split()) K score = n n score coin = 0 0 coin N, K = map(int,input().split()) map(int,input().split()) N ans += 1/(N*2**coin) 1/(N*2**coin) ans coin += 1 1 coin score *= 2 2 score ans = 0 0 ans
N, K = map(int,input().split())
ans = 0
for n in range(1,N+1):
    score = n
    coin = 0
    while(score < K):
        coin += 1
        score *= 2
    ans += 1/(N*2**coin)

print(ans)