LearnPy Hub
← Arena
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
solution.py
Output appears here
Decode the Message · Python Arena problem · LearnPy Hub