The dynamics of the flat anisotropic models in the Lovelock gravity. I: The even-dimensional case