import math

N = int(input())

points = [[int(coord) for coord in input().split()] for _ in range(N)]


removed = [False for _ in range(N)]

points.sort(key=lambda point: point[0])

for _ in range(N//4 - 1):
    least_x = 10e10
    least_x_i = []
    most_x = -10e10
    most_x_i = []

    least_y = 10e10
    least_y_i = []
    most_y = -10e10
    most_y_i = []

    for i, (x, y) in enumerate(points):
        if removed[i]:
            continue

        if x == most_x:
            most_x_i.append(i)

        if x > most_x:
            most_x = x
            most_x_i = [i]

        if x == least_x:
            least_x_i.append(i)

        if x < least_x:
            least_x = x
            least_x_i = [i]

        if y == most_y:
            most_y_i.append(i)

        if y > most_y:
            most_y = y
            most_y_i = [i]

        if y == least_y:
            least_y_i.append(i)

        if y < least_y:
            least_y = y
            least_y_i = [i]

    for i in least_x_i + least_y_i + most_x_i + most_y_i:
        removed[i] = True

final = [point for point, rem in zip(points, removed) if not rem]

assert len(final) == 4

print(abs((final[1][0] - final[0][0]) * (final[2][1] - final[0][1]) - (final[1][1] - final[0][1]) * (final[2][0] - final[0][0])))