Problem:
 Score : 100 points    Problem Statement There are H rows and W columns of white square cells.  You will choose h of the rows and w 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.  1 \leq H, W \leq 20  1 \leq h \leq H  1 \leq w \leq W         Input Input is given from Standard Input in the following format:  H  W  h  w       Output Print the number of white cells that will remain.        Sample Input 1 3 2
2 1      Sample Output 1 1  There are 3 rows and 2 columns of cells. When two rows and one column are chosen and painted in black, there is always one white cell that remains.       Sample Input 2 5 5
2 3      Sample Output 2 6       Sample Input 3 2 4
2 4      Sample Output 3 0

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

H, W = na()
h, w = na()

print((H - h)*(W - w))

Solution (Python):
def white_cells(H, M, h, m):
    return H*M - h*M - m*H + h*m


if __name__ == "__main__":
    HM = list(map(int, input().split()))
    H = HM[0]
    M = HM[1]
    hm = list(map(int, input().split()))
    h = hm[0]
    m = hm[1]

    ret = white_cells(H, M, h, m)
    print(ret)

Solution (Python):
ipt = list(map(int,input().split()))
cr = list(map(int,input().split()))
print((ipt[0]-cr[0])*(ipt[1]-cr[1]))

Solution (Python):
import numpy as np

ipt = list(map(int,input().split()))
cr = list(map(int,input().split()))
print((ipt[0]-cr[0])*(ipt[1]-cr[1]))

Solution (Python):
H,W = map(int, input().split(" "))
h,w = map(int, input().split(" "))

print((H-h)*(W-w))

Solution (Python):
H,W = map(int, input().split())
h,w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):


H, W = map(int, raw_input().split())
h, w = map(int, raw_input().split())

print((H - h) * (W - w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W - h*W - H*w + w*h)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split()) 
ans = (H-h) * (W-w)
print(ans)

Solution (Python):


import re

n = input()
n = re.split(" ",n)

m = input()
m = re.split(" ",m)

a = int(n[0])* int(n[1])
b = (int(m[0]) * int(n[1])) + (int(m[1]) * int(n[0]))
b = a-b
c = int(m[0]) * int(m[1])
print(b+c)

Solution (Python):
def main():
    H, W = map(int, input().split())
    h, w = map(int, input().split())
    result = (H-h)*(W-w)
    print(result)
    return result

main()

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H - h)*(W - w))

Solution (Python):
H, W = [int(i) for i in input().split()]
h, w = [int(i) for i in input().split()]

ans = (H - h) * (W - w)
print(ans)

Solution (Python):
H, W = input().split(' ')
h, w = input().split(' ')
H = int(H)
W = int(W)
h = int(h)
w = int(w)
 
print(H*W - h*W - (H - h)*w)

Solution (Python):

H, W = map(int, input().split())
all = H * W

h, w = map(int, input().split())
blank = all - h*W - w*H + h*w

print(blank)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H - h) * (W - w))

Solution (Python):
H, W = map(int, input().split())

h, w = map(int, input().split())

rest_white_lattice = H*W - (h*W + w*H - h*w)

print(rest_white_lattice)

Solution (Python):
H, W = [int(i) for i in input().split()]
h, w = [int(i) for i in input().split()]


print(H * W - (h * W + w * H - w * h))

Solution (Python):
HW = list(map(int, input().split()))
hw = list(map(int, input().split()))
 
print(HW[0]*HW[1] - hw[0]*HW[1] - HW[0]*hw[1] + hw[0]*hw[1])

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
result = H * W - h * W - (H * w - h * w)

print(result)

Solution (Python):
H, W = map(int, input().split(" "))
h, w = map(int, input().split(" "))

print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(W-w))

Solution (Python):
lh, lw, h, w = map(int, open(0).read().split())
print((lh - h) * (lw - w))

Solution (Python):
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-c)*(b-d))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())

whitecells = H*W
blackcells = (h*W + H*w) - h*w

print("{}".format(whitecells - blackcells))

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
white=H*W-(H*w+h*W-h*w)
print(white)

Solution (Python):



h1, w1 = map(int, input().split())
h2, w2 = map(int, input().split())
  



print("{}".format((h1-h2)*(w1-w2)))

Solution (Python):

H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W-(h*W+w*H-h*w))

Solution (Python):
import numpy as np


H, W = map(int, input().split())
h, w = map(int, input().split())
board = np.ones((H, W), dtype=int)
board[0:h] = 0
board[:, 0:w] = 0
print(board.sum())

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H * W - h * W - H * w + h * w)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
H, W = (int(x) for x in raw_input().split())
h, w = (int(x) for x in raw_input().split())
print((H - h) * (W - w))

Solution (Python):
T=list(map(int,input().split()))
H=list(map(int,input().split()))
print((T[1]-H[1])*(T[0]-H[0]))

Solution (Python):
R, W = map(int, raw_input().split())
r, w = map(int, raw_input().split())
print R * W - R * w - r * W + r * w

Solution (Python):
H, W = map(int,input().split())
h, w = map(int, input().split())
print(H*W - (h*W + H*w - h*w))

Solution (Python):
H,W = [int(x) for x in input().split()]
h,w = [int(x) for x in input().split()]

ans = (H-h)*(W-w)
print(ans)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W - h*W - H*w + h*w)

Solution (Python):



def main():
    large_h, large_w = map(int, input().split())
    h, w = map(int, input().split())
    print((large_h - h) * (large_w - w))


if __name__ == '__main__':
    main()

Solution (Python):
x = input()
y = input()
H = int(x.split()[0])
W = int(x.split()[1])
h = int(y.split()[0])
w = int(y.split()[1])

print((H-h)*(W-w))

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
total=H*W
total=H*W
a=h*W
b=H*w
c=h*w
hiku=a+b-c
ans=total-hiku
print(ans)

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split(" "))
h, w = map(int, input().split(" "))

print((H-h)*(W-w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())

print((H-h)*(W-w))

Solution (Python):

def main():
	H,W = map(int,input().split())
	h,w = map(int,input().split())
	print((H-h)*(W-w))

if __name__ == "__main__" :
	main()

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

blacks = (h * W) + (w * H) - (h * w)
whites = H * W - blacks

print(whites)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H - h) * (W - w))

Solution (Python):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))

total = H * W
black = h * W + H * w - h * w
white = total - black
print(white)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

ans = H*W - (h*W + w*H - h*w)
print(ans)

Solution (Python):






H,W = map(int, input().split())
h,w = map(int, input().split())





ans = H * W - (h * W + H * w - h * w)
print(ans)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):
LH, LW = map(int,input().split())
sh, sw = map(int,input().split())
print((LH-sh)*(LW-sw))

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
ans=(H-h)*(W-w)
print(ans)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())


print(H*W - h*W - H*w + h*w)

Solution (Python):
from itertools import combinations, product


def gcd(a, b):
    if a < b:
        a, b = b, a
    while b != 0:
        a, b = b, a % b
    return a

def lcm(a, b):
    return a * b // gcd(a, b)


def get(fmt):
    ps = input().split()
    r = []
    for p, t in zip(ps, fmt):
        if t == "i":
            r.append(int(p))
        if t == "f":
            r.append(float(p))
        if t == "s":
            r.append(p)
    if len(r) == 1:
        r = r[0]
    return r

def put(*args, **kwargs):
    print(*args, **kwargs)


def rep(n, f, *args, **kwargs):
    return [f(*args, **kwargs) for _ in range(n)]
    
def rep_im(n, v):
    return rep(n, lambda: v)
    
YES_NO = ["NO", "YES"]

H, W = get("ii")
h, w = get("ii")

put(H * W - h * W - w * H + h * w)

Solution (Python):
H, W = [int(x) for x in input().split()]
h, w = [int(x) for x in input().split()]
print((H-h)*(W-w))

Solution (Python):
H,W= map(int,input().split())
h,w= map(int,input().split())
a = H - h
b = W - w
print(b*a)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W+w*h-H*w-h*W)

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
ans=(H-h)*(W-w)
print(ans)

Solution (Python):
H,W=map(int,input().split());h,w=map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):
hn,wn=map(int,input().split())
h,w=map(int,input().split())
print(hn*wn-(h*wn+w*hn-h*w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
 
print(H*W-H*w-h*W+h*w)

Solution (Python):
hw = list(map(int, input().split()))
h = hw[0]
w = hw[1]

hw2 = list(map(int, input().split()))
h2 = hw2[0]
w2 = hw2[1]

print((h - h2) * (w - w2))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W - h*W - w*H + h*w)

Solution (Python):
h1, w1 = list(map(int, input().split()))
h2, w2 = list(map(int, input().split()))
print((h1 - h2) * (w1 - w2))

Solution (Python):
import numpy as np
(H, W) = tuple(map(int, input().split()))
(h, w) = tuple(map(int, input().split()))

tile = np.zeros([H, W])
for r in range(h):
  tile[r, :] = 1
for c in range(w):
  tile[:, c] = 1

num_white = int(H * W - tile.sum())
print(num_white)

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
math=H*W
black=h*W+H*w-h*w
white=math-black
print(white)

Solution (Python):
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W-H*w-W*h+h*w)

Solution (Python):
H,W=map(int, input().split())
h2,w2=map(int, input().split())
answer=0

sum_mass=H*W
answer=sum_mass - W*h2 - (H-h2)*w2
print(answer)

Solution (Python):
H,W = map(int, input().split())
h,w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):


H, W = map(int, input().split())
h, w = map(int, input().split())

print(H * W - h * W - H * w + h * w)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H * W - (W * h + H * w - h * w))

Solution (Python):
H, W = map(int,input().split())
h, w = map(int,input().split()) 

print((H-h)*(W-w))

Solution (Python):
H,W=map(int,input().split())
hi,wi=map(int,input().split())

print(W*H-W*hi-H*wi+hi*wi)

Solution (Python):
H,W = map(int,input().split(" "))
h,w = map(int,input().split(" "))

print((H-h)*(W-w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W - (h*W + w*H - h*w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h)*(W - w))

Solution (Python):
a,b = map(int,input().split(" "))
c,d = map(int,input().split(" "))
print((a-c) * (b-d))

Solution (Python):
h = [int(i) for i in input().split()]
w = [int(i) for i in input().split()]
print((h[0]-w[0])*(h[1]-w[1]))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
line = input()
table = line.split(" ")
nuru = input()
nurut = nuru.split(" ")
table_sum = int(table[0]) * int(table[1])
table_sum = table_sum - int(nurut[0])*int(table[1]) - int(nurut[1])*int(table[0]) + int(nurut[0])*int(nurut[1])
print(table_sum)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print( (W-w)*(H-h))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W - h*w - h*(W-w) - w*(H-h))

Solution (Python):
H, W = map(int, input().split())

x, y = map(int, input().split())

n = H * W

n = n - (x * W + y * H) + x * y

print(n)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W- (h*W + H*w - h*w))

Solution (Python):
H, W = input().split()
h, w = input().split()

ans = int(H)*int(W)
ans = ans - int(h)*int(W) - int(w)*int(H) + int(h)*int(w)

print(ans)

Solution (Python):
H,W = map(int, input().split())
h,w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):
import re

H, W = [int(item) for item in re.split(r"\s", input())]
h, w = [int(item) for item in re.split(r"\s", input())]

print(H * W - h * W - w * (H - h))

Solution (Python):
H, W = input().split()
h, w = input().split()
ans = (int(H) - int(h)) * (int(W) - int(w))
print(ans)

Solution (Python):
ta,yo=map(int,input().split(" "))
gn,rn=map(int,input().split(" "))
print((ta-gn)*(yo-rn))

Solution (Python):
def main():
    H, W = map(int, input().split())
    h, w = map(int, input().split())
    print((H - h) * (W - w))


main()

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())

num=(H-h)*(W-w)
print(str(num))

Solution (Python):


from sys import stdin

H, W = list(map(int, stdin.readline().split()))

h, w = list(map(int, stdin.readline().split()))

print((H-h) * (W-w))

Solution (Python):
H,W=[int(_) for _ in input().split()]
h,w=[int(_) for _ in input().split()]
print((H-h)*(W-w))

Solution (Python):



H_s,W_s = input().split()
h_s,w_s = input().split()

H = int(H_s)
W = int(W_s)
h = int(h_s)
w = int(w_s)

num_total    = H * W
num_black_h  = h * W
num_black_w  = H * w
num_black_hw = h * w
num_white = num_total - num_black_h - num_black_w + num_black_hw

print(num_white)

Solution (Python):
s1 = list(map(int, input().split()))
s2 = list(map(int, input().split()))
print((s1[0]-s2[0])*(s1[1]-s2[1]))

Solution (Python):
H, W, h, w = map(int, open(0).read().split())
print((W-w)*(H-h))

Solution (Python):

H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
s = map(int, raw_input().rstrip().split(' '))
z = map(int, raw_input().rstrip().split(' '))
print (s[0]-z[0]) * (s[1]-z[1])

Solution (Python):
s = map(int, raw_input().rstrip().split(' '))
z = map(int, raw_input().rstrip().split(' '))
print (s[0]-z[0]) * (s[1]-z[1])

Solution (Python):
H, W = [int(i) for i in input().split()]
h, w = [int(i) for i in input().split()]
print(H * W - h * W - w * H + w * h)

Solution (Python):
H, W=[int(i) for i in input().split()]
h, w=[int(i) for i in input().split()]

s=H*W
l=h*W
t=H*w
d=h*w
print(s-l-t+d)

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
white=H*W
black=h*W+w*H-h*w
print(white-black)

Solution (Python):
lh, lw = map(int, input().split())
h, w = map(int, input().split())

print((lh-h)*(lw-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print (H*W - h*W - H*w + h*w)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
 
total = H * W
num_del = h * W + H * w - h * w
print(total - num_del)

Solution (Python):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))

ans = H * W - (h*W + w*(H-h))
print(ans)

Solution (Python):
H,W = map(int, input().split())
h,w = map(int, input().split())

print((H-h)*(W-w))

Solution (Python):
HW = list(map(int, input().split()))
hw = list(map(int, input().split()))
a = (HW[0]-hw[0])*(HW[1]-hw[1])
print(a)

Solution (Python):
H,W=map(int, input().split())
h,w=map(int, input().split())

ans = (H-h)*(W-w)
print(ans)

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-(H*w+W*h-h*w))

Solution (Python):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))
print(H*W - (h*W + H*w - h*w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H - h) * (W - w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - h*W - w*H + h*w)

Solution (Python):
H,W = list(map(int, input().split(' ')))
h,w = list(map(int, input().split(' ')))
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H*W - (h*W + w*H - h*w))

Solution (Python):
H, W = [int(elem) for elem in input().split()]
h, w = [int(elem) for elem in input().split()]

print(H * W - h * W - w * H + h * w)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print(H * W - h * W - H * w + h * w)

Solution (Python):
H, W = [int(x) for x in input().split()]
h, w = [int(x) for x in input().split()]
print((H-h) * (W-w))

Solution (Python):
tmp = input()
H = int(tmp.split()[0])
W = int(tmp.split()[1])   
tmp = input()
h = int(tmp.split()[0])
w = int(tmp.split()[1])
ans = H*W-W*h-H*w+h*w
print(ans)

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())

print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

all = H * W
l = w * H
r = h * W
d = h * w

ans = all - (l + r - d)

print(ans)

Solution (Python):

H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(W-w))

Solution (Python):
H, W = [int(_) for _ in input().split()]
h, w = [int(_) for _ in input().split()]

print((H-h) * (W-w))

Solution (Python):

H, W = list(map(int, input().split()))

h, w = list(map(int, input().split()))

print(H*W + h*w - h*W-w*H)

Solution (Python):
x = input().split(' ')
y = input().split(' ')
a = int(x[0])
b = int(x[1])
c = int(y[0])
d = int(y[1])

print((a - c) * (b - d))

Solution (Python):
H,W=(int(x) for x in input().split())
h,w=(int(x) for x in input().split())
  
val = (H-h)*(W-w)
print(val)

Solution (Python):


H,W = map(int,input().split())
h,w = map(int,input().split())

ans = H*W - h*W - w*H +h*w
print(ans)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
h1, w1 = map(int, input().split())
h2, w2 = map(int, input().split())
print((h1-h2)*(w1-w2))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
h_, w_ = list(map(int, input().split(" ")))
h, w = list(map(int, input().split(" ")))
print(h_*w_ - h_*w-h*w_+h*w)

Solution (Python):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))

row = H - h
col = W - w

print(row * col)

Solution (Python):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))

row = H - h
col = W - w

print(row * col)

Solution (Python):
H, W = (int(num) for num in input().split())
h, w = (int(num) for num in input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())

print(H*W-H*w-h*W+h*w)

Solution (Python):
if __name__ == '__main__':
    H, W = map(int, input().split())
    h, w = map(int, input().split())
    print((H-h) * (W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H * W - h * W - H * w + h * w)

Solution (Python):
H,W = [int(x) for x in input().split()]
h,w = [int(x) for x in input().split()]
print(H*W-(h*W+H*w-h*w))

Solution (Python):
h, w = map(int, input().split())
h2, w2 = map(int, input().split())
print(h*w - h2*w - w2*h + h2*w2)

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())

print((H * W) - h * W - w * H + h * w)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H - h) * (W - w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
ans = H * W - h * W - w * H + h * w
print(ans)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(W-w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Solution (Python):


H,W=map(int,raw_input().split())
h,w=map(int,raw_input().split())
print (H-h)*(W-w)

Solution (Python):
H , W = map(int, input().split())
h , w = map(int, input().split())
white = H*W - H*w -h*W + h*w
print(white)

Solution (Python):
H,W = (int(i) for i in input().split())
h,w = (int(i) for i in input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(W-w))

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
b=H*W-(h*W+((H-h)*w))
print(b)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h) * (W-w))

Solution (Python):
H, W = [int(x) for x in input().split()]
h, w = [int(x) for x in input().split()]
print((H-h)*(W-w))

Solution (Python):
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))
print((H-h)*(W-w))

Solution (Python):
HW = list(map(int, input().split()))
hw = list(map(int, input().split()))
H = HW[0]
W = HW[1]
h = hw[0]
w = hw[1]
r = H * W - (W * h + (H - h) * w)
print(r)

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
masu = [[0]*W for i in range(H)]
for i in range(h):
    for j in range(W):
        masu[i][j]=1
for i in range(w):
    for j in range(H):
        masu[j][i]=1
ans = 0
for i in range(W):
    for j in range(H):
        if masu[j][i]==0:
            ans += 1
print(ans)

Solution (Python):
A = map(int,raw_input().split())
B = map(int,raw_input().split())

print (A[0]*A[1])-(A[0]*B[1]+A[1]*B[0]-B[0]*B[1])

Solution (Python):
inp = input().split(' ')
H = int(inp[0])
W = int(inp[1])

inp = input().split(' ')
h = int(inp[0])
w = int(inp[1])

totalNum = H * W

totalRow = h * W

totalCol = (H - h) * w

print(totalNum - totalRow - totalCol)

Solution (Python):





H, W = map(int, input().split())
h, w = map(int, input().split())

whiteCells = H*W - (H*w + h*W) + h*w


print(whiteCells)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):

H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
H,W=map(int,input().split())
h_num,w_num=map(int,input().split())

wite_square=H*W-(W*h_num)-(H*w_num)+(h_num*w_num)
print(wite_square)

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (h*W + w*H - h*w))

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Solution (Python):

H,W = [int(e) for e in input().split(' ')]
h,w = [int(e) for e in input().split(' ')]


ret = H*W - (h*W + H*w - h*w)


print(ret)

Solution (Python):
import sys

def main(inp):
    H,W=map(int,next(inp).split())
    h,w=map(int,next(inp).split())
    
    return H*W-(h*W+w*H-h*w)
  
print(main(sys.stdin))

Solution (Python):
from sys import stdin
n,m = map(int,stdin.readline().split())
x,y = map(int,stdin.readline().split())
tot = n*y + m*x - x*y
print n*m - tot

Solution (Python):
H, W = (int(x) for x in input().split())
h, w = (int(x) for x in input().split())
numCells = int((H-h) * (W-w))

print(numCells)

Solution (Python):
H, W = [int(item) for item in input().split()]
h, w = [int(item) for item in input().split()]

print(H*W - (h*w + ((H-h) * w) + ((W-w) * h)))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W-(W*h+H*w-h*w))

Solution (Python):
import numpy as np
H,W=[int(x) for x in input().split()]
h,w=[int(x) for x in input().split()]

M=np.zeros((H,W))

for n in range(h):
    print
    M[n]=1
for m in range(w):
        M.T[m]=1
        
print(len(M[M==0]))

Solution (Python):
H, W = map(int,input().split())
h, w = map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h) * (W-w))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W - h*W - w*H + h*w)

Solution (Python):
a,b = map(int,input().split())
c,d=map(int,input().split())
print((c-a)*(d-b))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H - h) * (W - w))

Solution (Python):
H,W = (int(i) for i in input().split())
h,w = (int(i) for i in input().split())
print((H-h)*(W-w))

Solution (Python):
N,W=map(int,input().split())
n,w=map(int,input().split())
print((N-n)*(W-w))

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-H*w+h*w)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = [int(i) for i in input().split(" ")]
h, w = [int(i) for i in input().split(" ")]
print(W * H - (W * h + w * H - w * h))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h) * (W-w))

Solution (Python):
import numpy as np
import sys

H, W = input().split()
h, w = input().split()

H = int(H)
W = int(W)
h = int(h)
w = int(w)

remain = H * W  
remain -= h * W
remain -= w * (H - h)

print(remain)

Solution (Python):
import sys
input = sys.stdin.readline

H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-h)*(W-w))

Solution (Python):


import sys 


h,w = map(int, sys.stdin.readline().rstrip().split())
h2,w2 = map(int, sys.stdin.readline().rstrip().split())

print((h-h2)*(w-w2))

Solution (Python):
[print((H-h)*(W-w))for H,W,h,w in[map(int,open(0).read().split())]]

Solution (Python):
H, W = (int(i) for i in input().split())
h, w = (int(i) for i in input().split())
print((H-h)*(W-w))

Solution (Python):
[print(f.reduce(o.mul,f.reduce(lambda x,y:[x[0]-y[0],x[1]-y[1]],[[int(i)for i in input().split()],[int(i)for i in input().split()]])))for f,o in[[__import__('functools'),__import__('operator')]]]

Solution (Python):
m = list(map(int,input().split()))
k = list(map(int,input().split()))
print(m[0]*m[1] - k[1]*m[0] - k[0]*m[1] + k[0]*k[1])

Solution (Python):
the_string = raw_input()
COLS, ROWS = the_string.split()
two_string = raw_input()
co, ro = two_string.split()


Mylist= [[0 for cols in range(int(COLS))] for rows in range(int(ROWS))]

for cols in range(int(co)):
        for rows in range(int(ROWS)):
                Mylist[rows][cols]=1

for rows in range(int(ro)):
        for cols in range(int(COLS)):
                Mylist[rows][cols]=1

d = sum(row.count(0) for row in Mylist)

print(d)

Solution (Python):
H, W = (int(i) for i in input().split())
h, w = (int(i) for i in input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
A,B = map(int,input().split())
a,b = map(int,input().split())
print((A-a)*(B-b))

Solution (Python):
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H - h) * (W - w))

Solution (Python):
H, W = map( int, input().split())
h, w = map( int, input().split())
print((H-h)*(W-w))

Solution (Python):
W, H = map(int,input().strip().split(' '))
w, h = map(int,input().strip().split(' '))


white = (W*H)-(w*h)-(W-w)*h-(H-h)*w

print(white)

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print (H * W - h * W - w * H + h * w)

Solution (Python):
first_args = raw_input().split()
second_args = raw_input().split()

max_row = int(first_args[0])
max_col = int(first_args[1])

fill_row = int(second_args[0])
fill_col = int(second_args[1])

if(fill_row <= max_row and fill_col <= max_col):
  all_cells = max_row * max_col
  filled_cells = (fill_row * max_col) + (fill_col * max_row) - (fill_row * fill_col)

  print all_cells - filled_cells

Solution (Python):
H, X = map(int, input().split())
h, w = map(int, input().split())

l = [[0 for i in range(X)] for j in range(H)]

for i in range(h):
    for j in range(X):
        l[i][j]=1

for i in range(H):
    for j in range(w):
        l[i][j]=1
        
print(sum(x.count(0) for x in l))

Solution (Python):


def main():
    H, W = map(int, input().split())
    h, w = map(int, input().split())
    print((H-h) * (W-w))


if __name__ == '__main__':
    main()

Solution (Python):
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))

Solution (Python):
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-c)*(b-d))

Solution (Python):
a, b = map(int, input().split())
c, d = map(int, input().split())
print((a-c)*(b-d))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
a,b = map(int,input().split()) 
c,d = map(int,input().split()) 

print((a-c)*(b-d))

Solution (Python):
H,W,h,w=map(int,open(0).read().split());print((W-w)*(H-h))

Solution (Python):
H,W,h,w=map(int,open(0).read().split())
print((W-w)*(H-h))

Solution (Python):
def int_raw():
    return int(raw_input())

def ss_raw():
    return raw_input().split()

def ints_raw():
    return map(int,ss_raw())

H,W = ints_raw()
h,w = ints_raw()

ans = H*W - (W*h+H*w - h*w)
print ans

Solution (Python):
def main():
    H, W = map(int, input().split())
    h, w = map(int, input().split())
    print((H-h) * (W-w))


if __name__ == "__main__":
    main()

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())

print((H-h)*(W-w))

Solution (Python):
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - w*H - W*h + w*h)

Solution (Python):
a, b = [int(x) for x in input().split()]
c, d = [int(x) for x in input().split()]
print(a*b - b*c - a*d + c*d)

Solution (Python):
import sys

def main():
    (H, W), (h, w) = map(lambda s: map(int, s.strip().split()), sys.stdin.readlines())
    print(H * W - (H * w + h * W - h * w))

if __name__ == "__main__":
    main()

Solution (Python):
H ,W = map(int, input().split())
h ,w= map(int, input().split())
print((H - h) * (W - w))

Solution (Python):
H, W = map(int,input().split())
h, w = map(int, input().split())

print(H*W-H*w-W*h+h*w)