object Main{
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val h0 = sc.nextInt()
    val w0 = sc.nextInt()
    val h = sc.nextInt()
    val w = sc.nextInt()
    println((h0-h) * (w0-w))
  }
}