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