In magnanimity there is the same amount of egoism as in revenge, but egoism of a different quality.
or simply: