solusi codechef digit pertama dan terakhir
t=int(input())
for i in range(t):
x=str(input())
a=int(x[0])
b=int(x[-1])
c=a+b
print(c)
Homeless Hawk
t=int(input())
for i in range(t):
x=str(input())
a=int(x[0])
b=int(x[-1])
c=a+b
print(c)