What is the greatest four-digit number that can be formed from the digits 7, 5, 9, 4, and 8 whose hundreds and ones our 4 and 8 perpectively?