Real numbers $x$, $y$, $a$ are such that $x+y = x^2 + y^2 = x^3 + y^3 = a$. Find the sum of all the possible values of $a$.