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