{-# LANGUAGE BangPatterns #-}
import           Control.Exception           (assert)
import           Control.Monad
import           Control.Monad.Primitive
import qualified Control.Monad.ST            as ST
import qualified Data.Array.IO               as IO
import qualified Data.Array.ST               as ST
import qualified Data.Array.Unboxed          as A
import           Data.Bits
import qualified Data.ByteString.Char8       as BS
import           Data.Char
import           Data.Foldable
import           Data.List
import qualified Data.Map.Strict             as Map
import           Data.Maybe
import qualified Data.Sequence               as Seq
import qualified Data.Set                    as Set
import qualified Data.Vector                 as VB
import qualified Data.Vector.Mutable         as VBM
import qualified Data.Vector.Unboxed         as V
import qualified Data.Vector.Unboxed.Mutable as VM
import           Debug.Trace

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine
getIntVec n = V.unfoldrN n (BS.readInt . BS.dropWhile isSpace) <$> BS.getLine

readInteger = fst . fromJust . BS.readInteger
readIntegerList = map readInteger . BS.words
getInteger = readInteger <$> BS.getLine
getIntegerList = readIntegerList <$> BS.getLine

inf :: Int
inf = 10^18

main = do
  n <- getInt
  xs <- VM.new n
  ys <- VM.new n

  forM_ [0..(n-1)] $ \i -> do
    [x, y] <- getIntList
    VM.write xs i x
    VM.write ys i y

  xs' <- V.freeze xs
  ys' <- V.freeze ys

  let getCorners i xa ya xb yb xc yc xd yd ma mb mc md
        | i >= n = (xa, ya, xb, yb, xc, yc, xd, yd, ma, mb, mc, md)
        | otherwise = let x = xs' V.! i
                          y = ys' V.! i
                          da = x + y
                          db = x + y
                          dc = x - y
                          dd = x - y
                          (xa', ya') | da > ma = (x, y)
                                     | otherwise = (xa, xb)
                          (xb', yb') | db < mb = (x, y)
                                     | otherwise = (xb, yb)
                          (xc', yc') | dc > mc = (x, y)
                                     | otherwise = (xc, yc)
                          (xd', yd') | dd < md = (x, y)
                                     | otherwise = (xd, yd)
                          ma' = max da ma
                          mb' = min db mb
                          mc' = max dc mc
                          md' = min dd md
                      in getCorners (i+1) xa' ya' xb' yb' xc' yc' xd' yd' ma' mb' mc' md'

      mm = 10^6 :: Int

      (xa, ya, xb, yb, xc, yc, xd, yd, ma, mb, mc, md) =
        getCorners 0 0 0 0 0 0 0 0 0 (-inf) inf (-inf) inf

      solve i res
        | i >= n = res
        | otherwise = let x = xs' V.! i
                          y = ys' V.! i
                          da = abs (x - xa) + abs (y - ya)
                          db = abs (x - xb) + abs (y - yb)
                          dc = abs (x - xc) + abs (y - yc)
                          dd = abs (x - xd) + abs (y - yd)
                          md = max da (max db (max dc dd))
                          res' = max res md
                      in solve (i+1) res'

  -- print $ solve 0 0
  print $ max (ma - mb) (mc - md)


Measured memory_bytes: 11124