Four integers are chosen so that their mean is 2017.

The integers are all different.

What is the smallest possible range that the 4 integers could have?