A square is divided into triangles (see the figure). How many ways are there to paint exactly one third of the square? Small triangles cannot be painted partially.