#include <bits/stdc++.h>
using namespace std;
int cnt[200][200];
char ara[200][200];
int n, k;
int main() {
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      scanf(" %c", &ara[i][j]);
    }
  }
  int cntt = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (ara[i][j] == '.') {
        for (int p = j; p <= (j + k - 1); p++) {
          if (ara[i][p] == '.') cntt++;
        }
        if (cntt == k) {
          for (int q = j; q <= (j + k - 1); q++) {
            cnt[i][q]++;
          }
          cntt = 0;
        }
        cntt = 0;
      }
    }
  }
  for (int j = 1; j <= n; j++) {
    for (int i = 1; i <= n; i++) {
      if (ara[i][j] == '.') {
        for (int p = i; p <= (i + k - 1); p++) {
          if (ara[p][j] == '.') cntt++;
        }
        if (cntt == k) {
          for (int q = i; q <= (i + k - 1); q++) {
            cnt[q][j]++;
          }
          cntt = 0;
        }
        cntt = 0;
      }
    }
  }
  int ii, jj, maxx = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (cnt[i][j] >= maxx) {
        maxx = cnt[i][j];
        ii = i;
        jj = j;
      }
    }
  }
  if (maxx)
    cout << ii << " " << jj << endl;
  else
    cout << "1"
         << " "
         << "1" << endl;
  return 0;
}
