Let P(x)=x2+bx+c, where b and c are integers. If P(x) is a facter of both x4+6x2+25 and 3x4+4x2+28x+5, then value of P(1) is -