#include using namespace std; int main() { int N, K; cin >> N >> K; int denom = (N + 1) * K; int numer = 0; for (int i = 0; i <= N; i++) { numer += i * K; } double ans = numer / denom; cout << ans << endl; return 0; }