Lagrangian classical relativistic mechanics of a system of directly interacting particles. I