import scala.io.{StdIn => in}

object Main extends App {
  val Array(hh, ww) = in.readLine.split(" ").map(_.toInt)
  val Array(h, w) = in.readLine.split(" ").map(_.toInt)
  val ans = (hh-h) * (ww-w)
  println(ans)
}