#D6410. Infallibly Crack Perplexing Cryptarithm

    ID: 5331 Type: Default 2000ms 268MiB

Infallibly Crack Perplexing Cryptarithm

Infallibly Crack Perplexing Cryptarithm

Example

Input

ACM

Output

0

inputFormat

Input

ACM

outputFormat

Output

0

样例

ACM
0