Oort cloud
Comet C/2006 P1 took millions of years coming directly from the Oort cloud. It follows a hyperbolic trajectory (with an osculating eccentricity larger than 1) during its passage through the inner Solar System, but the eccentricity will drop below 1 after it leaves the influence of the planets and it will remain bound to the Solar System as an Oort cloud comet.