From a grid, a square is cut out, located at the intersection of the horizontals from the third to the sixth and the same verticals. What is the maximum number of non-attacking rooks that can be placed on this grid, considering that rooks do not attack through the cut-out squares?