P11147 [AOJ] Infallibly Crack Perplexing Cryptarithm
普及
题目描述

Example

Input

ACM

Output

0

输入格式

见题面

输出格式

见题面

样例输入
ACM
样例输出
0