CSES - All Manhattan Distances
  • Time limit: 1.00 s
  • Memory limit: 512 MB

Given a set of points, calculate the sum of all Manhattan distances between two point pairs.

Input

The first line has an integer nn: the number of points.

The following nn lines describe the points. Each line has two integers xx and yy. You can assume that each point is distinct.

Output

Print the sum of all Manhattan distances.

Constraints

  • 1n21051 \le n \le 2 \cdot 10^5
  • 109x,y109-10^9 \le x, y \le 10^9

Example

Input:

5
1 1
3 2
2 4
2 1
4 5

Output:

36