F.py 110 B

12345
  1. n = int(input())
  2. for i in range(n):
  3. A = list(map(int, input().strip().split()))
  4. print(sum(A[1:]))