#line 1 "codes/Libraries/Core.hpp" #include using namespace std; using ll = long long; using ull = unsigned long long; #define rep(i, n) for (int i = 0; i < n; i++) #define rrep(i, n, s) for (int i = s; i < n; i++) #define vall(v) v.begin(), v.end() constexpr int INF = 1 << 30; constexpr int NEG_INF = -INF; constexpr ll LINF = 1ll << 62; constexpr ll NEG_LINF = -LINF; template inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template inline bool chmin(T &a, const T &b) { if (a > b) { a = b; return true; } return false; } #line 2 "codes/A.cpp" using uint=unsigned int; int main(){ int h,w; cin>>h>>w; vector s(h); uint t=0; rep(i,h){ uint now=0; rep(j,w){ uint a; cin>>a; now+=a; } s[i]=now; t+=now; } rep(i,h){ s[i]+=t; cout<