#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int mxn[n][n],mx[n];
srand(time(NULL));
for(int i = 0; i < n; i++)
int m = -1;
for(int j = 0; j < n; j++)
mxn[i][j] = rand() % 100;
if(mxn[i][j] > m)
m = mxn[i][j];
}
mx[i] = m;
for(auto i: mx)
cout << i << " ";
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int mxn[n][n],mx[n];
srand(time(NULL));
for(int i = 0; i < n; i++)
{
int m = -1;
for(int j = 0; j < n; j++)
{
mxn[i][j] = rand() % 100;
if(mxn[i][j] > m)
{
m = mxn[i][j];
}
}
mx[i] = m;
}
for(auto i: mx)
{
cout << i << " ";
}
}