Integrals of motion and quantum groups