Colour every square either black or red, in such a way that no three consecutive squares, horizontally or vertically, are the same colour and each row and column contains the same number of black and red squares.