Heterorings having sulfur atoms as ring heteroatoms