The oxidation numbers of sulfur in the given species are:
Thus, sulfur does not have the same oxidation number in the pairs H2SO3 and SO2, and HS− and S2−.