object Main extends App {
    var get = readLine
    var get2 = readLine
    var a = get.split(" ")(0).toInt - get2.split(" ")(0).toInt
    
    var c = get.split(" ")(1).toInt - get2.split(" ")(1).toInt
   println(a*c)
}