#include <iostream>
using namespace std;
void f(unsigned int row_number, unsigned int col_number, int** array)
{
for (unsigned int i = 0; i < row_number; ++i)
{
int max = array[i][0];
for (unsigned int j = 1; j < col_number; ++j)
{
if (max < array[i][j])
{
max = array[i][j];
cout << max << '\n';
break;
}
}
}
}
int main()
{
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnZvaWQgZih1bnNpZ25lZCBpbnQgcm93X251bWJlciwgdW5zaWduZWQgaW50IGNvbF9udW1iZXIsIGludCoqIGFycmF5KQp7Cglmb3IgKHVuc2lnbmVkIGludCBpID0gMDsgaSA8IHJvd19udW1iZXI7ICsraSkKCXsKCQlpbnQgbWF4ID0gYXJyYXlbaV1bMF07CgkJCgkJZm9yICh1bnNpZ25lZCBpbnQgaiA9IDE7IGogPCBjb2xfbnVtYmVyOyArK2opCgkJewoJCQlpZiAobWF4IDwgYXJyYXlbaV1bal0pCgkJCXsKCQkJCW1heCA9IGFycmF5W2ldW2pdOwoJCQkJY291dCA8PCBtYXggPDwgJ1xuJzsKCQkJCWJyZWFrOwoJCQl9CgkJfQoJfQp9CgppbnQgbWFpbigpCnsKCXJldHVybiAwOwp9