Alzer and Ruscheweyh have shown that any mean that is simultaneously a Gini and a Stolarsky mean belongs to the family of power means. We extend this result by proving analogous result for a broad class of two-parameter means, called S-means.