Select the smallest 4-digit number