Optimal risky portfolio of three stocks