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