In a triangle ABC, if angle C is obtuse and angles A and B are given by roots of the equation tan2x+p tanx+q=0, then the value of q is