What is the sum of all the possible values of k for which a seven-digit number 23k567k is divisible by 3?