N, m = map(int, input("").split(' ')) list_num=[] sum=0 for i in range(N): num = list(map(int, input().split(' '))) list_num.extend(num) for i in list_num: if i>0: sum+=i print(sum)
N, m = map(int, input("").split(' ')) list_num=[] sum=0 for i in range(N): num = list(map(int, input().split(' '))) list_num.extend(num) for i in list_num: if i>0: sum+=i print(sum)