let N =
    stdin.ReadLine()
    |> int
let xy =
    [|1..N|]
    |> Array.map (fun _ ->
        stdin.ReadLine().Split()
        |> Array.map int
        |> fun [|x;y|] -> (x,y))

let z = Array.map (fun (x,y) -> x+y) xy
let maxZ = Array.max z
let minZ = Array.min z

let w = Array.map (fun (x,y) -> x-y) xy
let maxW = Array.max w
let minW = Array.min w

max (maxZ-minZ) (maxW-minW)
|> stdout.WriteLine