#include using namespace std; int main() { double n, k; cin >> n >> k; double s = 0, a = (n + 1) * k; for (double i = 0; i < n+1; i++) { s += i * k; } cout << fixed << setprecision(5) << s / a << endl; }