Classical and quantum-mechanical systems of Toda lattice type. I