
N = int(input()) x_max = 0 y_max = 0 for i in range(N): x, y = map(int, input().split()) if x == y and abs(x) > x_max: x_max = abs(x) if x == -y and abs(x) > y_max: y_max = abs(x) max_square = (x_max * y_max) if max_square == 0: print('Треугольник не существует') else: print(max_square)