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

//a 0  1 2 3 4
//----------
//0
//1    8 10 12 9
//2
//3
int x,n,m,a[105][105];

int main(){
	cin>>n>>m;
	for(int i=1;i<=n;i++){//循环3行	
		x=0;//x初始化0 
		for(int j=1;j<=m;j++){//循环所有列 输入,判断 
			cin>>a[i][j];
			x=max(x,a[i][j]);//x等于新输入和原来x的max
		}
		cout<<x<<endl;//	输出x 
	}
	return 0;
} 
/**************************************************************
	Problem: 1996
	User: guoyixuan
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2116 kb
****************************************************************/