There are 3 masses with mass $\displaystyle m_1 m_2 m_3$

Assume that the mass of $\displaystyle m_1$ is very large ( like the Sun comparing to the Earth and Mars ) the position of it remains in the origin

My question is what is the path of $\displaystyle m_2$ and $\displaystyle m_3$ ? Is the path also an ellipse ?