A 4 digit number having all distinct digits is such that the product of all digits is 8 less than th