#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(){ int n, k; cin >> n >> k; double sum = 0, cnt = 0; for(int i = 0; i <= n; i++){ sum += i * k; cnt += k; } printf("%.10f\n", (double)sum / cnt); return 0; }