A 999-digit number starts with 9. Every 2 consecutive digits is divisible by 17 or 23. There are 2 possibilities for the last 3 digits. What is the sum of these 2 possibilities?