Cryptarithm is a mathematical puzzle in which each digit of a calculation is replaced by a letter, and the solver must recover which digit each letter stands for.
A well known instance is SEND+MORE=MONEY.
SEND
+ MORE
------
MONEY
Setting S=9, E=5, N=6, D=7, M=1, O=0, R=8, Y=2 satisfies the equation.
9567
+ 1085
------
10652
Given a cryptarithm A+B=C written with three words, determine whether any digit assignment satisfies it.
The same letter always maps to the same digit, and different letters map to different digits. Numbers may start with 0.