#include using namespace std; int w[10000]; int main() { int l, k,ans=0; cin >> l >> k; for (; l > 2* k;l-=2*k) { ans += k; } cout << ans; }