I want to show that, if every closed curve $\gamma$ on the connected surface $S$ satisfies $$ \int_{\gamma} \left(\frac{\tau}{\kappa}\right)ds =0 $$ where $\tau$ and $\kappa$ are the torsion and the curvature of the curve($\kappa>0$).
Then $S$ is a part of plane or sphere. I know how to prove the converse, but how can I deal with this?