If the equation cot4x−2cosec2x+a2=0 has atleast one solution then, sum of all possible integral values of a is equal to