ridu, veerge=[int(e) for e in input().split()] puhver=[int(e) for e in input().split()] for reanr in range(ridu-1): rida=[int(e) for e in input().split()] for veerunr in range(veerge): puhver[veerunr]+=rida[veerunr] print(*puhver)