'use strict';
(function(input){
  input=input.trim().split(/\s+/).map(x=>x-0);
  console.log(input[0]*input[1]/2+' '+(((input[2]===input[0]/2)&&(input[3]===input[1]/5))?1:0));
})(require('fs').readFileSync('/dev/stdin','utf8'));