If the equation ax2−6xy+y2+2gx+2fy+c=0 represents a pair of line whose slopes are m and m2, then sum of all possible values of a is-