100 #ABC121A. [ABC121A] White Cells

[ABC121A] White Cells

Score : 100100 points

Problem Statement

There are HH rows and WW columns of white square cells.

You will choose hh of the rows and ww of the columns, and paint all of the cells contained in those rows or columns.

How many white cells will remain?

It can be proved that this count does not depend on what rows and columns are chosen.

Constraints

  • All values in input are integers.
  • 1H,W201 \leq H, W \leq 20
  • 1hH1 \leq h \leq H
  • 1wW1 \leq w \leq W

Input

Input is given from Standard Input in the following format:

HH WW

hh ww

Output

Print the number of white cells that will remain.

3 2
2 1
1

There are 33 rows and 22 columns of cells. When two rows and one column are chosen and painted in black, there is always one white cell that remains.

5 5
2 3
6
2 4
2 4
0