Let z be a complex number such that the imaginary part of z is nonzero and a = z2+z+1 is real. Then a cannot take the value