n,m = map(int,input().split()) a = [] for i in range(m): temp = list(map(int,input().split())) a.append(temp) train = [0 for i in range(n)] check = False for i in range(m): for k in range(n): train[k] += a[i][k] print(train) if sum(train) == 777: check = True e = 0 while e