The original version of this article was written more than five years ago with S.Z. Shefel’, a profound and original mathematician who died in 1984. Since then the geometry of surfaces has continued to be enriched with ideas and results. This has required changes and additions, but has not influenced the character of the article, the design of which originated with Shefel’. Without knowing to what extent Shefel’ would have approved the changes, I should nevertheless like to dedicate this article to his memory. (Yu.D. Burago)