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