TAs want to schedule a physical meeting but are too lazy to think about where they want to meet. Since they are lazy and don't want to move too much, please help them find out the optimal meeting location that minimizes the total distance they need to travel.
The distance is calculated using Manhattan Distance, following is how the distance is calculated:
$$\begin{aligned} &p_1 = (x_1, y_1) \\ &p_2 = (x_2, y_2) \\ &\text{distance}(p_1, p_2) = |x_1 - x_2| + |y_1 - y_2| \end{aligned}$$
The first line contains one integer $N$, representing the number of TA.
The next $N$ lines each contains two integers, $x_i$ and $y_i$, representing the $x$ and $y$ coordinate of each TA respectively.
Output the minimum total distance they need to travel.
Noted that you should output one single line.