Pieces are placed in some squares of an $8 \times 8$ board sothat: a) There is at least one token in any rectangle with sides $2 \times 1$ or $1\times 2$. b) There are at least two neighboring pieces in any rectangle with sides $7\times 1$ or $1\times 7$. Find the smallest number of tokens that can be taken to fulfill with both conditions.