Write the greatest and the smallest 4-digit numbers using four different digits with the condition that 5occurs at ten's place.