SPOJ MAYA

Summary
You are reqired to translate numbers given in ascii transformation of ancient symbols.

Explanation
Basically a transformation of numbers given with base 20 to decimal (base 10).

Gotchas
Watch the exception for third least significant digit of Maya numbers

Implementations
Easy implementation may use tables for 20 Maya digits and 7 factors for the weight of digits.