A seven digit telephone number is of the form ABC-DEFG. In one particular state, the digit 'A' can be any digit except 0 and 1. The digits B and C can be any digit for 2-9. The digits D,E,F, and G can be any digit 0-9 except they can't all be the same. How many seven digit phone numbers are possible with these restrictions?