import scala.io.StdIn._

object Main extends App {

  val Array(h,w) = readLine().split(" ").map(_.toInt)
  val Array(h1,w1) = readLine().split(" ").map(_.toInt)

  def solve() = {
    (h-h1) * (w-w1)
  }
  println(solve())

}

