Find the polynomial $p(x)$ with integer coefficients such that one solution of the equation $p(x)=0$ is $1+\sqrt{2}+\sqrt{3}$.