
n = int(input())
for i in range(n):
    string = input()
    a = int(string[0])
    b = int(string[len(string) - 1])
    sum = a + b
    print("Sum = {}".format(sum))

95763606e8b7157a574466ac0cfff4933e679d19
<mask token>

<mask token>
for i in range(n):
    string = input()
    a = int(string[0])
    b = int(string[len(string) - 1])
    sum = a + b
    print('Sum = {}'.format(sum))

n = int(input())
for i in range(n):
    string = input()
    a = int(string[0])
    b = int(string[len(string) - 1])
    sum = a + b
    print('Sum = {}'.format(sum))


n = int(input())
for i in range(n):
    string = input()
    a = int(string[0])
    b = int(string[len(string) - 1])
    sum = a + b
    print("Sum = {}".format(sum))
