Integrability of the Nosé-Hoover equation