#include #include #include using namespace std; int main() { long long l,k,kk=0; cin>>l>>k; if(l<=k+k){ cout<<0<k*2+kk){ kk=kk+k*2; } cout<