program main
	implicit none
    integer :: height, width、row, column, white
    read(*, *) height, width
    read(*, *) row, column
    white = (height - row)*(width - column)
    write(*, *) white
stop
end program main