We define f(A)=1,f(a)=-1,f(B)=2,f(b)=-2, ... f(Z)=26,f(z)=-26;
Give you a letter x and a number y , you should output the result of f(x)+y.
On the first line, contains a number n.
For each case, you should the result of f(x)+y on a line.
6
R 1
P 2
G 3
r 1
p 2
g 3
19
18
10
-17
-14
-4