On a hike!
A new season in the country of Smeshariki! Now they are all going on a hike. To do this, they need to meet at one point, and from there go to conquer the world. Losyash, who coordinates the actions of Smeshariki, knows the coordinates of all participants in the campaign. Help him determine the minimum number of seconds Smeshariki will need to get together.
Initially, all Smeshariki are located in the nodes of the integer grid. If Smesharik is at the point , then in one second he can move to the points , , or , or stay at the point .
Input
The first line contains one integer — the number of Smeshariki. Further in lines the initial positions of Smeshariki are given. Each position is described by two integers and .
Output
Print a single number — the minimum number of seconds that Smeshariki will need to gather at one point.