Recently Rocky had participated in coding competition and he is sharing one of the problem with you which he was unable to solve. Help Rocky in solving the problem.
Suppose the alphabets are arranged in a row starting with index 0$0$ from AtoZ$A to Z$.
If in a coded language  A=27$A=27$ and AND=65$AND=65$.
Help Rocky to find a suitable formula for finding all the value for given test cases?
(All alphabets are in Upper case only).

-----Input:-----
First line of the input contains  string s$s$.

-----Output:-----
Output the possible integer values of the given string s$s$ according to the question . 

-----Constraints-----
- 1≤s≤100$1 \leq s \leq 100$

-----Sample Input:-----
A

AND   

-----Sample Output:-----
27

65

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "n=input()\na=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']\nj=0\nfor i in range(len(n)):\n    if(n[i]=='A'):\n        j=j+27\n    if(n[i]=='B'):\n        j=j+26\n    if(n[i]=='C'):\n        j=j+25\n    if(n[i]=='D'):\n        j=j+24\n    if(n[i]=='E'):\n        j=j+23\n    if(n[i]=='F'):\n        j=j+22\n    if(n[i]=='G'):\n        j=j+21\n    if(n[i]=='H'):\n        j=j+20\n    if(n[i]=='I'):\n        j=j+19\n    if(n[i]=='J'):\n        j=j+18\n    if(n[i]=='K'):\n        j=j+17\n    if(n[i]=='L'):\n        j=j+16\n    if(n[i]=='M'):\n        j=j+15\n    if(n[i]=='N'):\n        j=j+14\n    if(n[i]=='O'):\n        j=j+13\n    if(n[i]=='P'):\n        j=j+12\n    if(n[i]=='Q'):\n        j=j+11\n    if(n[i]=='R'):\n        j=j+10\n    if(n[i]=='S'):\n        j=j+9\n    if(n[i]=='T'):\n        j=j+8\n    if(n[i]=='U'):\n        j=j+7\n    if(n[i]=='V'):\n        j=j+6\n    if(n[i]=='W'):\n        j=j+5\n    if(n[i]=='X'):\n        j=j+4\n    if(n[i]=='Y'):\n        j=j+3\n    if(n[i]=='Z'):\n        j=j+2\nprint(j)"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13703