Spreadsheet columns are labelled A, B, ..., Z, then AA, AB, ..., AZ, BA, and so on. This is a bijective base-26 numbering where A=1, Z=26, AA=27.
Given a column label, output its 1-based column number.
Input format
One line: a column label made of uppercase letters A-Z.
Output format
One line: the 1-based column number.
Constraints
- 1 <= length of the label <= 7
- The label consists of uppercase English letters.