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 = "# cook your dish here\n#Author : Ashutosh Wagh, Codechef : ashutosh0903\ns = input()\nn = len(s)\nv = 0\nfor i in range(n) :\n    if s[i]=='A' :\n        v += 27\n    elif s[i]=='B' :\n        v += 26\n    elif s[i]=='C' :\n        v += 25\n    elif s[i]=='D' :\n        v += 24\n    elif s[i]=='E' :\n        v += 23\n    elif s[i]=='F' :\n        v += 22\n    elif s[i]=='G' :\n        v += 21\n    elif s[i]=='H' :\n        v += 20\n    elif s[i]=='I' :\n        v += 19\n    elif s[i]=='J' :\n        v += 18\n    elif s[i]=='K' :\n        v += 17\n    elif s[i]=='L' :\n        v += 16\n    elif s[i]=='M' :\n        v += 15\n    elif s[i]=='N' :\n        v += 14\n    elif s[i]=='O' :\n        v += 13\n    elif s[i]=='P' :\n        v += 12\n    elif s[i]=='Q' :\n        v += 11\n    elif s[i]=='R' :\n        v += 10\n    elif s[i]=='S' :\n        v += 9\n    elif s[i]=='T' :\n        v += 8\n    elif s[i]=='U' :\n        v += 7\n    elif s[i]=='V' :\n        v += 6\n    elif s[i]=='W' :\n        v += 5\n    elif s[i]=='X' :\n        v += 4\n    elif s[i]=='Y' :\n        v += 3\n    elif s[i]=='Z' :\n        v += 2\nprint(v)"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 13755