  In the present paper we prove, that if the geodesic flow of a metric G on the
torus T is quadratically integrable, then the torus T isometrically covers a
torus with a Liouville metric on it, and describe the set of quadratically
integrable geodesic flows on the Klein bottle.
