#include using namespace std; int main(int argc, char const* argv[]) { int l, k; cin >> l >> k; int ans = 0; while ((l -= 2*k) > 0) { ans += k; } cout << ans << endl; return 0; }