T = int(input()) N = int(input()) f = list(map(int,input().split())) for i in range(T): print(sum(f))