import sys input = sys.stdin.readline N = int(input()) XY = [tuple(map(int,input().split())) for i in range(N)] XY.sort(key=lambda x:x[0]**2 + x[1]**2) ans = 0 for i in range(100): if len(XY) < 2: break x1,y1 = XY.pop() for x2,y2 in XY: ans = max(ans, abs(x1*y2 - x2*y1)) print(ans)