Consider all three-digit numbers that are greater than the sum of the squares of their digits by exactly 543. What are the last three digits of the sum of these numbers?