A hook consists of three segments of longitude $1$ forming two right angles as demonstrated in the figure. |_| We have a square of side length $n$ divided into $n^2$ squares of side length $1$ by lines parallel to its sides. Hooks are placed on this square in such a way that each segment of the hook covers one side of a little square. Two segements of a hook cannot overlap. Determine all possible values of n for which it is possible to cover the sides of the $n^2$ small squares.