Problem of the day
You have been given a column title as appears in an Excel sheet, return its corresponding column number.
For example:A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
The only line of input contains a string S i.e. column title
1 <= |S| <= 10
Input contains only uppercase English Alphabet letters
Time Limit : 1 sec
Output Format
The only line of output will print the column number corresponding to given column title
AB
28
ZZZ
18278