using each of the digits 3 4 6 7 8 9once,write the greatest number that is less than 5,000,000