#include int main(void){ int L,K; if(L%(2*K)==0){ L=L-(2*K); } printf("%d", (L-(L%(2*K)))/2); }