AdvancedRating 1500
Decode the Message
Letters map to numbers A=1 ... Z=26. Count the ways to decode a string of digits.
Input
One line of digits.
Output
A count.
Sample 1
Input
12
Output
2
Sample 2
Input
226
Output
3
Output appears hereOne line of digits.
A count.
12
2
226
3
Output appears here