how many four-digit numbers greater than 2999 can be formed such that the product of the middle two digits exceeds 5?