In the following Cryptarithm, each letter represents a distinct digit. What would be the value of XYZ?
Based on first three equations what would be the value of the forth equation in the given image?