program dist_max
  implicit none
  integer, parameter :: inf = lshift(1, 31) - 2
  integer :: n, x, y, a = inf, b = -inf, c = inf, d = -inf, i
  read(*,*) n
  do i = 1, n
    read(*,*) x, y
    a = min(a, x + y)
    b = max(b, x + y)
    c = min(c, x - y)
    d = max(d, x - y)
  end do
  write(*,'(i0)') max(b - a, d - c)
end program dist_max