let n = Int(readLine()!)!
var xyArray: [[Int]] = []
for _ in 0..<n {
    xyArray.append(readLine()!.split(separator: " ").map {Int($0)!})
}

func manhattanDistance(point1: [Int], point2: [Int]) -> Int {
    return abs(point1[0]-point2[0])+abs(point1[1]-point2[1])
}

var maxDistance = manhattanDistance(point1: xyArray[0], point2: xyArray[1])

if n == 2 {
    print(maxDistance)
} else {
    for i in 3...n {
        for j in 0..<i-1 {
            maxDistance = max(maxDistance, manhattanDistance(point1: xyArray[j], point2: xyArray[i-1]))
        }
    }
    print(maxDistance)
}

