#include <bits/stdc++.h>
using namespace std;
int n, k;
string f[101];
bool horizontally(int r, int c) {
  if (c + k > n) {
    return false;
  }
  for (int cc = c; cc < c + k; cc++) {
    if (f[r][cc] == '#') {
      return false;
    }
  }
  return true;
}
bool vertically(int r, int c) {
  if (r + k > n) {
    return false;
  }
  for (int rr = r; rr < r + k; rr++) {
    if (f[rr][c] == '#') {
      return false;
    }
  }
  return true;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> f[i];
  }
  int count[n][n];
  memset(count, 0, sizeof(count));
  int res = 0;
  int rr = 0, cc = 0;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      if (horizontally(i, j)) {
        for (int jj = j; jj < j + k; jj++) {
          count[i][jj]++;
          if (count[i][jj] > res) {
            res = count[i][jj];
            rr = i;
            cc = jj;
          }
        }
      }
      if (vertically(i, j)) {
        for (int ii = i; ii < i + k; ii++) {
          count[ii][j]++;
          if (count[ii][j] > res) {
            res = count[ii][j];
            rr = ii;
            cc = j;
          }
        }
      }
    }
  rr++;
  cc++;
  cout << rr << " " << cc << endl;
  return 0;
}
