A palimage of a natural number is the number which has the same digits but in reverse order. For example, 659 and 956 are palimages; so are 1327 and 7231. Now add 354 and its palimage. Call this sum X. Add X and its palimage. Call this sum Y. Add Y and its palimage. Call this sum Z. What is the value of Z?