#include using namespace std; int main(){ int l,k; cin>>l>>k; int t=l/k/2; if(l/2%k==0)t--; cout<