1766774700-1766768400 HUSTOJ
#include <bits/stdc++.h>
using namespace std;

int main(){
	int x,y,a[105][105],big;
	cin>>x>>y;
	for(int i=1;i<=x;i++){
		for(int j=1;j<=y;j++){
			cin>>a[i][j];
		}
	}
	for(int i=1;i<=x;i++){
		big=0;
		for(int j=1;j<=y;j++){
			if(big<=a[i][j]){
				big=a[i][j];
			}
		}
		cout<<big<<endl;
	}
	return 0;
} 
/**************************************************************
	Problem: 1996
	User: chenhongen
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/