Ellipse grazes orbits of Earth and Mars