Modern cars have both an odometer (that measures the total distance a car has traveled) and a tripometer (one that can be reset to measure the distance traveled on smaller trips.) If the tripometer ever reaches 9999, it resets back to zero.
Above is an image of a car's odometer and tripometer. At what mileage on the odometer are the first 4 digits from the left once more the same on both meters?