In a certain state, license plates consist of three letters followed by three numbers. How many license plates contain neither the letter 'Q' nor the number '9'?