#include using namespace std; typedef long long ll; int main() { ll n, k; cin >> n >> k; ll m = (n + 1) * k; double ans = 0; for (ll i = 0; i <= n; ++i) { double one = (double)1 / m * i; ans += (one * k); } cout << fixed << setprecision(10) << ans << '\n'; return 0; }