#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll N=1e3+9,M=1e3+9;
ll a[N][M],b[N][M];
int main()
{
int n,m,c;
cin>>n>>m>>c;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
cin>>a[i][j];
b[i][j]=a[i][j]+b[i-1][j-1]+b[i][j-1]-b[i-1][j-1];
}
}
int maxx=-1000000000;
int X,Y;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
if(i>=c&&j>=c)
{
int ans=b[i][j]-b[i-c-1][j]-b[i][j-c-1]+b[i-c-1][j-c-1];
if(ans>maxx)
{
X=i;
Y=j;
}
}
}
}
cout<<X-c<<' '<<Y-c;
return 0;
}