## https://yukicoder.me/problems/no/2331 def main(): N = int(input()) xy = [] for _ in range(N): x, y = map(int, input().split()) xy.append((x , y)) answer = 0 for i in range(N): for j in range(i + 1, N): x0,y0 = xy[i] x1,y1 = xy[j] v0_x = x1 - x0 v0_y = y1 - y0 p_max = -1 p_min = -1 for k in range(N): w0_x = xy[k][0] - x0 w0_y = xy[k][1] - y0 d = (v0_x * w0_y - v0_y * w0_x) if d > 0: p_max = max(p_max, d) elif d < 0: p_min = max(p_min, abs(d)) if p_max > 0 and p_min > 0: ans = p_min + p_max answer = max(ans, answer) print(answer) if __name__ == "__main__": main()