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