const main = (input) => {
  input = input.split('\n');
  const [H, W] = input[0].split(' ');
  const [h, w] = input[1].split(' ');
  console.log(H*W - h*W - H*w + h*w);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));