#include <iostream>
using namespace std;
int main() {
int table[5][5];
int Max=0,m;
//filling array
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
cin>>tabl[i][j];
}
}
//searching for the max element
Max=table[0][0];
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
if(Max>table[i][j])
Max=table[i][j];
n=i;
}
}
//showing the Max column content
for(int i=0;i<5;i++)
{
cout<<table[n]<endl;
}
cout << "Hello World!";
return 0;
}