Liouville integrability of a variational problem for Legendrian curves in the three-dimensional sphere;