#include <bits/stdc++.h>
using namespace std;
char field[101][101];
int a[101][101];
int main() {
  int n, maxxx = 0, ansX = 1, ansY = 1, l;
  cin >> n >> l;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      cin >> field[i][j];
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n - l + 1; j++) {
      bool ok = 1;
      for (int k = j; k < j + l; k++) {
        if (field[i][k] == '#') {
          ok = 0;
          break;
        }
      }
      if (ok) {
        for (int k = j; k < j + l; k++) {
          a[i][k]++;
        }
      }
    }
  }
  for (int i = 1; i <= n - l + 1; i++) {
    for (int j = 1; j <= n; j++) {
      bool ok = 1;
      for (int k = i; k < i + l; k++) {
        if (field[k][j] == '#') {
          ok = 0;
          break;
        }
      }
      if (ok) {
        for (int k = i; k < i + l; k++) {
          a[k][j]++;
        }
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (a[i][j] > maxxx) {
        maxxx = a[i][j];
        ansX = i;
        ansY = j;
      }
    }
  }
  cout << ansX << ' ' << ansY << endl;
}
