#include <bits/stdc++.h>
using namespace std;
int c[100][100];
int main() {
  ios::sync_with_stdio(false);
  int n, shipLen;
  cin >> n >> shipLen;
  vector<string> m(n);
  for (string& r : m) cin >> r;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      int j0 = j;
      while (j < n && m[i][j] == '.') ++j;
      int len = j - j0;
      if (len >= shipLen) {
        for (int k = j0; k < j; ++k)
          c[i][k] +=
              1 + min(shipLen - 1, min(len - shipLen, min(k - j0, j - 1 - k)));
      }
    }
    for (int j = 0; j < n; ++j) {
      int j0 = j;
      while (j < n && m[j][i] == '.') ++j;
      int len = j - j0;
      if (len >= shipLen) {
        for (int k = j0; k < j; ++k)
          c[k][i] +=
              1 + min(shipLen - 1, min(len - shipLen, min(k - j0, j - 1 - k)));
      }
    }
  }
  int mi = 0, mj = 0;
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < n; ++j)
      if (c[i][j] > c[mi][mj]) mi = i, mj = j;
  cout << mi + 1 << ' ' << mj + 1 << endl;
  return 0;
}
