import java.util.Scanner


object Main {
  val sc = new Scanner(System.in)

  def main(args: Array[String]): Unit = {
    val hh = sc.nextInt
    val ww = sc.nextInt
    val h = sc.nextInt
    val w = sc.nextInt

    println( (hh - h) * (ww - w) )

  }

}