#include
using namespace std;
void get2DArray(int array[][4],int n)
{
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
cin>>array[i][j];
}
}
}
void search(int array[][4],int n,int key)
{ static int col=n;
for(int i=0;i<n;i++)
{
if(col==-1)
{
cout<<“no such element is present”;
break;
}
else if(key==array[i][col])
{
cout<<key<<“lies in”<<i<<" row"<<col<<" column";
}
else if(key<array[i][col])
{
col–;
}
}
}
int main()
{
int n;
cin>>n;
int array[n][n]={0};
get2DArray(array,n);
int key;
cin>>key;
search(array,n,key);
return 0;
}