void main(){ import std.stdio, std.string, std.conv, std.algorithm; int n, m; rd(n, m); auto a=new int[](n); while(m--){ auto d=readln.split.to!(int[]); foreach(i; 0..n){ a[i]+=d[i]; assert(a[i]>=0); } } writeln("0"); } void rd(T...)(ref T x){ import std.stdio, std.string, std.conv; auto l=readln.split; assert(l.length==x.length); foreach(i, ref e; x){ e=l[i].to!(typeof(e)); } } void wr(T...)(T x){ import std.stdio; foreach(e; x) stderr.write(e, " "); stderr.writeln; }