If a,b,c,p,q,r are three non-zero complex number such that pa+qb+rc=1+i and ap+bq+cr=0, then value of p2a2+q2b2+r2c2 is