qyliang/CodeNanoFix huggingface dataset:
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
ka=h*w
print(H*W-ka)

Fixed code:
H, W = map(int, input().split())
h,w = map(int, input().split())
print((H-h)*(W-w))
Buggy code:
length, width = int(input()).split()
x, y = int(input()).split()

print((length-x) * (width-y))

Fixed code:
length, width = input().split()
length, width = int(length),int(width)
x, y = input().split()
x,y = int(x),int(y)
 
print((length-x) * (width-y))
Buggy code:
H,W = map(int,input().split())
h,w = map(int,input().split())

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

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

ans = H*W - (H*w+W*h)+1*(h*w)
print(ans)
Buggy code:
H, W = map(int, input().split())
h, w = map(int input().split())

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

print(s)

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

print(H * W - W * h - w * (H - h))
Buggy code:
# -*- coding: utf-8 -*-
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w)


Fixed code:
# -*- coding: utf-8 -*-
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))
Buggy code:
H,W = map(int,input().split())
h,w = map(int,input().split())

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

Fixed code:
H ,W = map(int, input().split())
h ,w= map(int, input().split())
print((H - h) * (W - w))
Buggy code:
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W-h*W-wH+h*w)

Fixed code:
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H - h) * (W - w))
Buggy code:
H,W = map(int, input().split(" "))
h,w = map(int, input().split(" "))

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


Fixed code:
H,W = map(int, input().split(" "))
h,w = map(int, input().split(" "))

print(H*W-H*w-W*h+w*h)
Buggy code:
p,q= input().split()
a,b =(int(p), int(q))
P,Q= input().split()
A,B =(int(P), int(Q))
print(int(a*b - A*B))

Fixed code:
p,q= input().split()
a,b =(int(p), int(q))
P,Q= input().split()
A,B =(int(P), int(Q))
print(int((a-A)*(b-B)))
Buggy code:
H, W =int(input().split())
h, w =int(input().split())
print((H-h)*(W-w))

Fixed code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print((H-h)*(W-w))
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*w+W*h-h*w)

Fixed code:
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W+h*w-h*W-w*H)
Buggy code:
H,W=int(input()).split()
h,w=int(input()).split()
print((H-h)*(W-w))

Fixed code:
H,W=map(int,(input()).split())
h,w=map(int,(input()).split())
print((H-h)*(W-w))
Buggy code:
H,W = map(int, input().split())
h, w = map(int, input().split())
print(h * W + w* H - h * w)

Fixed code:
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))
print(H*W-(H*w+W*h-h*w))
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (H - h)(W - w))

Fixed code:
H,W =map(int,input().split())
h,w =map(int,input().split())
print(H * W - (h * W +(H- h)* w))
Buggy code:
x = [list(map(int,input().split())) for i in range(2)]
print((x[1][1]-x[1][0])*(x[0][1]-x[0][0]))

Fixed code:
x = [list(map(int,input().split())) for i in range(2)]
print((x[1][1]-x[0][1])*(x[1][0]-x[0][0]))
Buggy code:
a, b = (int(i) for i in input().split())
c, d = (int(i) for i in input().split())

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

Fixed code:
a, b = (int(i) for i in input().split())
c, d = (int(i) for i in input().split())

print(a*b - b*c - a*d + c*d)
Buggy code:
H, W = map(int,input().split())
h, w = map(int,input().split())
print(H*W-h*w)

Fixed code:
H, W = map(int,input().split())
h, w = map(int,input().split())
print(H*W-(h*W+H*w-h*w))
Buggy code:
HW=input()
hw=input()
HWlist=HW.split()
hwlist=hw.split()
print(HWlist)
print(hwlist)
H=int(HWlist[0])
W=int(HWlist[1])
h=int(hwlist[0])
w=int(hwlist[1])
print(H*W-h*W-H*w+h*w)

Fixed code:
HW=input()
hw=input()
HWlist=HW.split()
hwlist=hw.split()
H=int(HWlist[0])
W=int(HWlist[1])
h=int(hwlist[0])
w=int(hwlist[1])
print(H*W-h*W-H*w+h*w)
Buggy code:
A,B = input().split()
a,b = input().split()
print(A*B-a*B-b*A+a*b)

Fixed code:
A,B = input().split()
a,b = input().split()
A = int(A)
B = int(B)
a = int(a)
b = int(b)
print(A*B-a*B-b*A+a*b)
Buggy code:
H,W = map(int, input().split())
h,w = map(int, input().split())

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

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

print(H * W - (h * W + w * H) + h * w)
Buggy code:
a = list(map(int, input().split()))
b = list(map(int, input().split()))
H = a[0]
W = a[1]
h = b[0]
w = b[1]
k = H * h - W * w
print(k)

Fixed code:
a = list(map(int, input().split()))
b = list(map(int, input().split()))
H = a[0]
W = a[1]
h = b[0]
w = b[1]
k = (H - h) * (W - w)
print(k)
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())

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

Fixed code:
H, W = map(int, input().split())

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

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

Fixed code:
H,W = map(int, input().split())
h,w = map(int, input().split())
print((H*W) - (h*W) - (w*(H-h)))
Buggy code:
h,w = map(int, input().split())
a,b = map(int, input().split())

print(h*w-h-w)

Fixed code:
h,w = map(int, input().split())
a,b = map(int, input().split())

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

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

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

print(H * W - H*w - W*h + h * w)
Buggy code:
H,W=(int(x) for x in input().split())
h,w=(int(x) for x in input().split())

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

Fixed code:
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))
Buggy code:
H,W=int(input().split())
h,w=int(input().split())

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

print(ans)

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

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

print(ans)
Buggy code:
H, W= map(int, input().split())
h, w= map(int, input().split())

A = h * W
B = H * w
print(A + B - h*w)


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

A = h * W
B = H * w

a = H * W - (A + B - h * w)
print(a)
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())

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

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

print(H*W-(h*W+H*w)+h*w)
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
B=H*W-h*w
print(B)

Fixed code:
H,W=map(int,input().split())
h,w=map(int,input().split())
B=(H-h)*(W-w)
print(B)
Buggy code:
"""White Cells"""
H,W=(int(i) for i in input().split())
h,w=(int(i) for i in input().split())
H*W-H*w-W*h+h*w

Fixed code:
"""White Cells"""
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+h*w)
Buggy code:
h, w = map(int, input().split())
y, x = map(int, input().split())

print(h * w - h * y - w * x + x * y)

Fixed code:
h, w = map(int, input().split())
y, x = map(int, input().split())

print(h * w - h * x - w * y + x * y)
Buggy code:
import sys

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


Fixed code:
import sys

input = sys.stdin.readline
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W-H*w-W*h+h*w)
Buggy code:
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 * H - w * W + h * w)

Fixed code:
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)
Buggy code:
# abc121_a
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w)9


Fixed code:
# abc121_a
H, W = map(int, input().split())
h, w = map(int, input().split())
print((H-h)*(W-w))
Buggy code:
X,Y=map(int(input(),split())
x,y=map(int(input(),split())
a=(X-x)*(Y-y)
print(a)

Fixed code:
X,Y=map(int,input().split())
x,y=map(int,input().split())
a=(X-x)*(Y-y)
print(a)
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())

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

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

print((H * W) - (H * w) - (W * h) + (h * w))
Buggy code:
a,b,c,d=map(int,input().split())
print((a-c)*(b-d))

Fixed code:
a,b=map(int,input().split())
c,d=map(int,input().split())
print(a*b - (b*c + (a-c)*d) )
Buggy code:
h, w=map(int, input().split())
H, W=map(int, input().split())
print(H*W-h*w)

Fixed code:
H,W = list(map(int, input().split()))
h,w = list(map(int, input().split()))
print((H-h) * (W-w))
Buggy code:
H,W　= (int(i) for i in input().split())
h,w　= (int(i) for i in input().split())

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

Fixed code:
H,W=(int(i) for i in input().split())
h,w=(int(i) for i in input().split())
 
print ((H-h)*(W-w))
Buggy code:
h, w, H, W=map(int, input().split())
print(h*W+w*H-w*h)

Fixed code:
H,W = map(int,input().split())
h,w = map(int,input().split())
print( (H-h)*(W-w) )
Buggy code:
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-b)*(c-d))

Fixed code:
a,b =map(int,input().split())
c,d =map(int,input().split())
print((a-c)*(b-d))
Buggy code:
H,W = map(int, input().split())
h,w = map(int, input().split())

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

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

total = H* W
ans = total - (H*w + W*h - h*w) 
print (ans)
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())

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

Fixed code:
H,W = map(int, input().split())
h,w = map(int, input().split())
x = H*W -h*W -H*w + h*w
print(x)
Buggy code:
a,b = map(int,input().split())

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

print(a*b-h*w)


Fixed code:
h, w = map(int, input().split())
a, b = map(int, input().split())
print((h - a) * (w - b))
Buggy code:
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))

answer=(H-h)-(W-w)

print(answer)

Fixed code:
H,W=list(map(int,input().split()))
h,w=list(map(int,input().split()))

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

print(answer)
Buggy code:
A,B=map(int,input().split())
a,b=map(int,input().split())

A-a=x
B-b=y

print(int(x*y))

Fixed code:
A,B=map(int,input().split())
a,b=map(int,input().split())

x=A-a
y=B-b

print(int(x*y))
Buggy code:
H,W=map(int, input().split())
h,w=map(int, input().split())

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

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

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

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

Fixed code:
H,W = map(int,input().split())

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

print(H * W - (W * h + H * w - h * w))
Buggy code:
H,W = list(map(int, input().split(' '))
h,w = list(map(int, input().split(' '))
print((H-h)*(W-w))

Fixed code:
H,W = list(map(int, input().split(' ')))
h,w = list(map(int, input().split(' ')))
print((H-h)*(W-w))
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W - (W*h + H*w - (h+w-1)))

Fixed code:
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W-(W*h+H*w-h*w))
Buggy code:
a,b=map(int,input().split())
c,d=map(int,input().split())
print((a-c)*(c-d))

Fixed code:
a, b = list(map(int, input().split()))
c, d = list(map(int, input().split()))

print( (a-c) * (b-d) )
Buggy code:
p=[list(map(int,input().split()) for i in range(2))]

(p[0][0]-p[1][0])*(p[0][1]-p[1][1])

Fixed code:
p=[list(map(int,input().split())) for i in range(2)]

print((p[0][0]-p[1][0])*(p[0][1]-p[1][1]))
Buggy code:
H,W=map(int, input().split())
h,w=map(int, input().split())

(H-h)*(W-w)

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

print(H*W - h*W - (H-h)*w)
Buggy code:
matrix = list(map(int,input().split()))
shitei = list(map(int,input().split()))

masume = matrix[0]*matrix[1]
black = shitei[0]*matrix[1]+shitei[0]*(matrix[0]-shitei[0])
white = masume-black

print(white)

Fixed code:
matrix = list(map(int,input().split()))
shitei = list(map(int,input().split()))

masume = matrix[0]*matrix[1]
black = shitei[0]*matrix[1]+shitei[1]*(matrix[0]-shitei[0])
white = masume-black

print(white)
Buggy code:
math_line = list(map(int,input().split()))
input_line = list(map(int,input().split()))

area = math_line[0]*math_line[1]　

black_cell = math_line[0]*input_line[1] + math_line[1]*input_line[0] 
duplicate =  black_cell - input_line[0]*input_line[1]

white_cell = area - duplicate

print(white_cell)

Fixed code:
math_line = list(map(int,input().split()))
input_line = list(map(int,input().split()))

area = math_line[0]*math_line[1]
black_cell = math_line[0]*input_line[1] + math_line[1]*input_line[0]
duplicate =  black_cell - input_line[0]*input_line[1]
white_cell = area - duplicate

print(white_cell)
Buggy code:
H,W=map(int, input().split())
h,w=map(int, input().split())

H*W-h*W-w*H+h*w

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


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

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

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

ans = H * W - h * W - H * w + h * w
print(ans)
Buggy code:
H,W=map(int,input().split())
hi,wi=map(int,input().split())

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

Fixed code:
H,W=map(int,input().split())
hi,wi=map(int,input().split())

print(W*H-W*hi-H*wi+hi*wi)
Buggy code:
H, W = map(int, input.split())
h, w = map(int, input.split())
print((H-h)*(W-w))

Fixed code:
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H * W - h * W - w * (H - h))
Buggy code:
a, b = map(int, input().split())
c, d = map(int, input().split())
print(a*b-c*d)

Fixed code:
a,b = map(int,input().split())
c,d = map(int,input().split())

print( (a-c)*(b-d) )
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())
ans = H * W - h * H - w * W + h * w
print(ans)

Fixed code:
H, W = map(int,input().split())
h, w = map(int,input().split())
print(H*W-h*W-w*H+h*w)
Buggy code:
import sys

def main():
    list = [[i for i in map(int, line.rstrip().split())] for line in sys.stdin.readlines()]
    a = (list[0][0] - list[0][1]) *  (list[1][0] - list[1][1])
    print(a)

if __name__ == '__main__':
    sys.exit(main())



Fixed code:
import sys

def main():
    list = [[i for i in map(int, line.rstrip().split())] for line in sys.stdin.readlines()]
    a = (list[0][0] - list[1][0]) *  (list[0][1] - list[1][1])
    print(a)

if __name__ == '__main__':
    sys.exit(main())
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())

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

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

print(H * W - (h * W +  w * H - h * w))
Buggy code:
'''A - White Cells
https://atcoder.jp/contests/abc121/tasks/abc121_a

>>> main([3, 2], [2, 1])
1
>>> main([5, 5], [2, 3])
6
>>> main([2, 4], [2, 4])
0'''


def main(amount, portion):
    print((amount[0] - portion[0]) * (amount[1] - portion[1]))


if __name__ == "__main__":
    amount = map(int, input().split(' '))
    portion = map(int, input().split(' '))

    main(amount, portion)


Fixed code:
'''A - White Cells
https://atcoder.jp/contests/abc121/tasks/abc121_a

>>> main([3, 2], [2, 1])
1
>>> main([5, 5], [2, 3])
6
>>> main([2, 4], [2, 4])
0'''


def main(amount, portion):
    print((amount[0] - portion[0]) * (amount[1] - portion[1]))


if __name__ == "__main__":
    amount = list(map(int, input().split(' ')))
    portion = list(map(int, input().split(' ')))

    main(amount, portion)
Buggy code:
H,W = map(int,input().split())
h,w = map(int,input().spilt())

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

Fixed code:
H, W = map(int, input().split())
h, w = map(int, input().split())
ans = H*W - h*W - H*w + h*w
print(ans)
Buggy code:
hh, ww = map(int, input(),split())
h, w = map(int, input(),split())
s = hh*ww - h*ww - hh*w + hh*ww
print(s)

Fixed code:
hh,ww = map(int, input().split())
h, w = map(int, input().split())
s = hh*ww - h*ww - hh*w + h*w
print(s)
Buggy code:
h1, w1 = list(map(int, input().split()))
h2, w2 = list(map(int, input().split()))
print((h1 - h2) * (w2 - w1))

Fixed code:
h1, w1 = list(map(int, input().split()))
h2, w2 = list(map(int, input().split()))
print((h1 - h2) * (w1 - w2))
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-H*h-W*w+h*w)

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

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

print(ans)
Buggy code:
a,b=list(map(int,input().split()))
c,d=list(map(int,input().split()))
x=a*b
print(x-a*c-b*)

Fixed code:
a,b=list(map(int,input().split()))
c,d=list(map(int,input().split()))
x=a*b
print(x-a*d-b*c+c*d)
Buggy code:
H, W = map(int, input().split()) 
h, w = map(int, input(.split()))
print((H-h) * (W - w))


Fixed code:
H,W = map(int, input().split(' '))
h,w = map(int, input().split(' '))

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

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

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

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

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

print(ans)

Fixed code:
H, W=map(int, input().split())
h, w=map(int, input().split())
ans=(W-w)*(H-h)
print(ans)
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*h+h*w)

Fixed code:

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

print((H-h)*(W-w))
Buggy code:
import Math

lst=input().split(" ")
H=int(lst[0])
W=int(lst[1])
lst=input().split(" ")
h=int(lst[0])
w=int(lst[1])

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

Fixed code:
lst=input().split(" ")
H=int(lst[0])
W=int(lst[1])
lst=input().split(" ")
h=int(lst[0])
w=int(lst[1])

print(H*W-(h*W+H*w-h*w))
Buggy code:
a,s=map(int,input().split())
f,g=map(int,input().split())
print(a*s-f*g)

Fixed code:
a,s=map(int,input().split())
f,g=map(int,input().split())
print((a-f)*(s-g))
Buggy code:
h_all, w_all = map(int, input().split)
h_b, w_b = map(int, input().split)

print((h_all - h_b) * (w_all - w_b))

Fixed code:
h_all, w_all = map(int, input().split())
h_b, w_b = map(int, input().split())
 
print((h_all - h_b) * (w_all - w_b))
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*H+2*h*w)

Fixed code:
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W-(h*W+H*w-h*w))
Buggy code:
H,W = map(int,input().split)
h,w = map(int,input().split)
print((H*W)-(h*w))

Fixed code:
H, W = map(int, input().split())
h, w = map(int, input().split())
ans = H * W - h * W - w * (H - h)
print(ans)
Buggy code:
import io, sys, atexit, os

import math as ma
from sys import exit
from decimal import Decimal as dec
from itertools import permutations


def li ():
	return list (map (int, input ().split ()))


def num ():
	return map (int, input ().split ())


def nu ():
	return int (input ())


def find_gcd ( x, y ):
	while (y):
		x, y = y, x % y
	return x


mm = 1000000007



def solve ():
	t = 1
	for it in range (t):
		a,b=num()
		c,d=num()
		print(a*b-c*d)





if __name__ == "__main__":
	solve ()

Fixed code:
import io, sys, atexit, os

import math as ma
from sys import exit
from decimal import Decimal as dec
from itertools import permutations


def li ():
	return list (map (int, input ().split ()))


def num ():
	return map (int, input ().split ())


def nu ():
	return int (input ())


def find_gcd ( x, y ):
	while (y):
		x, y = y, x % y
	return x


mm = 1000000007



def solve ():
	t = 1
	for it in range (t):
		a,b=num()
		c,d=num()
		ff=c*b+a*d-(c*d)
		print(a*b-ff)





if __name__ == "__main__":
	solve ()
Buggy code:
H, W = map(int, input().split())
h, w = map(int, input().split())

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

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

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

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

Fixed code:
H,W = map(int,input().split())
h,w = map(int,input().split())
print(H*W-h*W-H*w +h*w)
Buggy code:
a, b = map(int, input().split())
c, d = map(int, input().split())

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

Fixed code:
a, b = map(int, input().split())
c, d = map(int, input().split())

print((a * b) - (a * d) - (b * c) + (c * d))
Buggy code:
H,W = map(int,input().split())
h,w = map(int,input().split())
print((H-1)*(w-1)-(h-1)*(w-1))

Fixed code:
H, W = map(int,input().split())

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

print((W-w)*(H-h))
Buggy code:
H, W = [int(i) for input().split()]
bh, bw = [int(i) for input().split()]

res = (H * W) - ((bh*W) + (bh*H) - (bh*bw))

print(res)

Fixed code:
H, W = [int(i) for i in input().split()]
bh, bw = [int(i) for i in input().split()]

res = (H * W) - ((bh*W) + (bw*H) - (bh*bw))

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

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

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


Fixed code:
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H*W-H*w-h*W+h*w)
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*H+h*W)

Fixed code:
H, W = map(int, input().split())
h, w = map(int, input().split())
print(H * W - (h * W + w * H - w * h))
Buggy code:
H,W = map(int,input().split())
h,w = map(int,input().split())

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

Fixed code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H*W-h*W-w*H+h*w)
Buggy code:
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))
print(((H-h) * (W-w))

Fixed code:
H, W = list(map(int, input().split()))
h, w = list(map(int, input().split()))
print((H-h) * (W-w))
Buggy code:
H,W=map(int,input().split())
h,w=map(int,input().split())
print(H-h*W-w)

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

n = H*W

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

print(n)
Buggy code:
N,M,C= map(int,input().split())
B= list(map(int,input().split()))
now = 0
for i in range(N):
  A=list(map(int,input().split()))
    ans = C
    for j in range(M):
        ans += A[j]*B[j]
    if (ans)>0:
        now += 1
print(now)


Fixed code:
N,M,C = map(int,input().split())
B = list(map(int,input().split()))

ans = 0
for i in range(N):
  A = list(map(int,input().split()))
  s = 0
  for i in range(M):
    s += A[i] * B[i]
  if s + C > 0:
    ans += 1
print(ans)
Buggy code:
N,M,C = list(map(int,input().split()))
b = input()
count = 0
for i in  range(N):
	a = input()
	s = 0
	for j in range(M)
		s += a[j]*b[j]
	if s>C:
		count+=1
print(count)


Fixed code:
N,M,C = list(map(int,input().split()))
b = list(map(int,input().split()))
count = 0
for i in  range(N):
	a = list(map(int,input().split()))
	s = 0
	for j in range(M):
		s += a[j]*b[j]
	if s+C>0:
		count+=1
print(count)