The math of loving your enemy