<filename>codechef/FLOW004.py<gh_stars>1-10
for _ in range(int(input())):
    n = input()
    print(int(n[0])+int(n[-1]))

<filename>codechef/FLOW004.py<gh_stars>1-10
for _ in range(int(input())):
    n = input()
    print(int(n[0])+int(n[-1]))
