Patricia placed 2018 points in the plane such that all pairwise distances are distinct. She then colors each of her 2018 points, taking care that for every point $P$, the points $Q$ and $R$ that are closest to and farthest from $P$ have the same color as $P$. What is the maximum number of colors Patricia could have used?