Time Limit: 1 sec
This S.S.C the most common issue was question leak. One of Bangladeshi student suggest to encrypt the question. A random student encrypt words using concrete the numbers and alphabets.
There are 26 alphabets. Every alphabet contains a number. Such as 01 for A. 26 for Z. And for numbers He add number with 7 and print the last digit of sum.
He encrypted as below:
E = 05
X = 24
A = 01
M = 13
9 = (9+7) = 16
EXAM9 = 0E52X40A11M36
Now he wants to solve it in programming language. Can You help him by solving this problem??
The input file contains several lines. Each line contains a word which contains both small and capital letter. The length of the word is 100. Input is terminated by EOF.
For each line of input print the output in a separate line.
Inter University Programming Contest(II) - 2018 [BGC Trust University Bangladesh]
Problem Setter: Shaquib Mahmud