#include #include using namespace std; int main(){ int L, K; cin >> L >> K; if ((L % 2 * K) <= 0)cout << "0" << endl; else{ cout << K*(L / (2*K)) << endl; } }