func readInt() -> Int {
    return Int(readLine()!)!
}

func readInts() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

func main1() {
    let n = readInt()
    var ans = 0
    
    var array1 = readInts()
    var array2 = [0]
    
    for _ in 2...n {
        array2 = readInts()
        
        let x = (array1[0] - array2[0]) < 0 ? -(array1[0] - array2[0]) : (array1[0] - array2[0])
        let y = (array1[1] - array2[1]) < 0 ? -(array1[1] - array2[1]) : (array1[1] - array2[1])
        
        ans = (x + y) > ans ? (x + y) : ans
        
        array1.removeAll()
        array1 = array2
    }
    print(ans)
    
}

main1()