p, q = map(int, input().split()) ans = 0 for i in range(1, 10000): ans += (pow((p - 1) / p, i - 1) * 1 / p) * i print(min(ans, q))