program prob5
    implicit none
    integer::n, i, x, y
    integer, allocatable::u(:), v(:)
    read*, n
    allocate(u(n), v(n))
    do i = 1, n
        read(*,*) x, y
        u(i) = x + y
        v(i) = x - y
    end do
    write(*,*) max(maxval(u) - minval(u), maxval(v) - minval(v))
    deallocate(u, v)
    stop
end program