#include using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ Int l,k; cin>>l>>k; k*=2; cout<<(l-1)/k*k/2<