INPUT : The first line of input contains number of testcases T.
It is followed by T number of lines and each line contains a string s containing only
uppercase english letters(‘A’ - ‘Z’).
OUTPUT : In a single line ,print the required output corresponding to the input s.
s | OUTPUT |
BDE | 45 |
ADD | 33 |
BAE | 30 |
FBA | 41 |
BAD | 21 |
CONSTRAINTS:
1<length(s)<=5