object Main extends App {
  import scala.io.StdIn._

  val Array(height, width) = readLine.trim.split(' ').map(_.toInt)
  val Array(h, w) = readLine.trim.split(' ').map(_.toInt)
  println(
    (height - h) * (width - w)
  )
}