Number of postcodes


#1

Austrian postcodes consist of 6 digits, but only the digits 0, 2, 4, 5, 6 and 7 are used for the first digit, and if the first digit is 0 then the second digit is always 8 and if the 5th digit is 5 then third digit is always 0. How many different postcodes are possible with these restrictions?