Let a1,a2,....an be n nonzero real numbers, of which p are positive and remaining are negative. The number of ordered pairs (j,k), j<k, for which ajak is positive, is 55. Similarly, the number of ordered pairs (j,k), j<k, for which ajak is negative is 50. Then the value of p2+(n–p)2 is