#include <bits/stdc++.h>
int n, m, k, tA, tB;
long long s[2010][2010], Sum, Ans = 0;
long long cal(int x1, int y1, int x2, int y2) {
  x1--;
  y1--;
  return s[x2][y2] - s[x2][y1] - s[x1][y2] + s[x1][y1];
}
void G(long long &w) {
  char c = getchar();
  w = 0;
  while (c > '9' || c < '0') c = getchar();
  while (c >= '0' && c <= '9') {
    w = w * 10 + c - '0';
    c = getchar();
  }
}
int main() {
  scanf("%d%d%d", &n, &m, &k);
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= m; j++) G(s[i + j - 1][i - j + m]);
  for (int i = 1; i <= n + m - 1; i++)
    for (int j = 1; j <= n + m - 1; j++)
      s[i][j] += s[i - 1][j] + s[i][j - 1] - s[i - 1][j - 1];
  tA = tB = k;
  for (int x = k; x <= n - k + 1; x++)
    for (int y = k; y <= m - k + 1; y++) {
      Sum = 0;
      for (int l = 0; l < k; l++)
        Sum += cal(x + y - l - 1, x - y - l + m, x + y + l - 1, x - y + l + m);
      if (Sum > Ans) {
        tA = x;
        tB = y;
        Ans = Sum;
      }
    }
  printf("%d %d\n", tA, tB);
  return 0;
}
