// @ts-check
'use strict'

/** @param {string} input */
function main(input) {
  const [H, W, h, w] = input.split(/\s/).map(Number)

  console.log((H - h) * (W - w))
}

main(require('fs').readFileSync('/dev/stdin', 'utf8').trim())
