

program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int64):: n,i
    integer(int64), allocatable:: x(:),y(:),w(:),z(:)


    read*, n
    allocate(x(n), y(n))
    do i=1,n
        read*, x(i),y(i)
    end do
    allocate(w(n),z(n))
    z(:) = x(:)+y(:)
    w(:) = x(:)-y(:)
    print'(i0)', max(maxval(z)-minval(z), maxval(w)-minval(w))
end program main