N = int(input())
stakes = set()
xcs = []
ycs = []
for i in range(N):
    x, y = input().split()
    x = int(x)
    xcs.append(x)
    y = int(y)
    ycs.append(y)
    stakes.add((x, y))
xcs.sort()
ycs.sort()
expos = 1
exposshift = 0
# curex = {"xmax": 0, "xmin": 0, "ymax": 0, "ymin": 0}
# exflg = {"xmax": 0, "xmin": 0, "ymax": 0, "ymin": 0}

for _ in range(N//4 - 1):
    xmin = xcs[expos-1]
    xmax = xcs[-expos]
    ymin = ycs[expos-1]
    ymax = ycs[-expos]

    to_discard = set()
    for x, y in stakes:
        sumflg = (xmin == x) + (xmax == x) + (ymin == y) + (ymax == y)
        if sumflg:
            to_discard.add((x, y))
            exposshift = sumflg

    expos += exposshift
    for t in to_discard:
        stakes.remove(t)

stakes = list(stakes)
a, b = stakes[1][0]-stakes[0][0], stakes[1][1]-stakes[0][1]
c, d = stakes[2][0]-stakes[0][0], stakes[2][1]-stakes[0][1]

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

