Sulfur–nitrogen chains: rational and irrational behaviour