#include <bits/stdc++.h>
using namespace std;
int n, m, k, ax, ay;
long long s[2005][2005], sl[2005][2005], sr[2005][2005], ans = -1;
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int main() {
  cin >> n >> m >> k;
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j <= m; ++j)
      s[i][j] = read() + s[i][j - 1] + s[i - 1][j] - s[i - 1][j - 1];
  for (int i = 1; i <= n + 1; ++i)
    for (int j = 1; j <= m + 1; ++j) sl[i][j] = s[i][j] + sl[i - 1][j - 1];
  for (int i = 1; i <= n + 1; ++i)
    for (int j = 0; j <= m; ++j) sr[i][j] = s[i][j] + sr[i - 1][j + 1];
  for (int i = k; i <= n - k + 1; ++i)
    for (int j = k; j <= m - k + 1; ++j) {
      long long t =
          (sr[i + k - 1][j] - sr[i - 1][j + k]) -
          (sl[i + k - 1][j - 1] - (j > k ? sl[i - 1][j - k - 1] : 0)) -
          (sl[i - 1][j + k - 1] - (i > k ? sl[i - k - 1][j - 1] : 0)) +
          (sr[i - 1][j - k] - (i > k ? sr[i - k - 1][j] : 0));
      if (t > ans) ans = t, ax = i, ay = j;
    }
  cout << ax << ' ' << ay << endl;
  return 0;
}
