  We give an elementary and rigorous proof of the Thomae type formula for
singular $Z_N$ curves. To derive the Thomae formula we use the traditional
variational method which goes back to Riemann, Thomae and Fuchs.
