\(a^3+b^3+c^3=3abc\\ \left(a+b\right)^3+c^3-3ab\left(a+b\right)-3abc=0\\ \left(a+b+c\right)\left(a^2+b^2+c^2+2ab-ac-bc\right)-3ab\left(a+b+c\right)=0\\ \left(a+b+c\right)\left(a^2+b^2+c^2-ab-bc-ac\right)=0\)
Do \(a+b+c\ne0\Rightarrow a^2+b^2+c^2-ab-bc-ca=0\)
\(\left(a^2-2ab+b^2\right)+\left(b^2-2bc+c^2\right)+\left(c^2-2ca+a^2\right)=0\\ \left(a-b\right)^2+\left(b-c\right)^2+\left(c-a\right)^2=0\\ \Rightarrow a=b=c\)
=>P=20093