RestrictedSum