Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ACM-ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

B. Valuable Resources

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputMany computer strategy games require building cities, recruiting army, conquering tribes, collecting resources. Sometimes it leads to interesting problems.

Let's suppose that your task is to build a square city. The world map uses the Cartesian coordinates. The sides of the city should be parallel to coordinate axes. The map contains mines with valuable resources, located at some points with integer coordinates. The sizes of mines are relatively small, i.e. they can be treated as points. The city should be built in such a way that all the mines are inside or on the border of the city square.

Building a city takes large amount of money depending on the size of the city, so you have to build the city with the minimum area. Given the positions of the mines find the minimum possible area of the city.

Input

The first line of the input contains number *n* — the number of mines on the map (2 ≤ *n* ≤ 1000). Each of the next *n* lines contains a pair of integers *x*_{i} and *y*_{i} — the coordinates of the corresponding mine ( - 10^{9} ≤ *x*_{i}, *y*_{i} ≤ 10^{9}). All points are pairwise distinct.

Output

Print the minimum area of the city that can cover all the mines with valuable resources.

Examples

Input

2

0 0

2 2

Output

4

Input

2

0 0

0 3

Output

9

Codeforces (c) Copyright 2010-2018 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jun/22/2018 16:29:51 (d3).

Desktop version, switch to mobile version.

User lists

Name |
---|