#include <bits/stdc++.h>
int mat[105][105], ans[105][105];
using namespace std;
int main(int argc, char *argv[]) {
  int n, m;
  char cc;
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) {
    getchar();
    for (int j = 1; j <= n; j++) {
      scanf("%c", &cc);
      if (cc == '#')
        mat[i][j] = 1;
      else
        mat[i][j] = 0;
    }
  }
  int tmp = 0;
  for (int i = 1; i <= n; i++) {
    tmp = 0;
    for (int j = 1; j <= n; j++) {
      if (mat[i][j] == 0) {
        tmp++;
        if (tmp == m) {
          for (int k = 0; k < tmp; k++) {
            ans[i][j - k]++;
          }
          tmp--;
        }
      } else if (mat[i][j] == 1)
        tmp = 0;
    }
  }
  for (int j = 1; j <= n; j++) {
    tmp = 0;
    for (int i = 1; i <= n; i++) {
      if (mat[i][j] == 0) {
        tmp++;
        if (tmp == m) {
          for (int k = 0; k < tmp; k++) {
            ans[i - k][j]++;
          }
          tmp--;
        }
      } else if (mat[i][j] == 1)
        tmp = 0;
    }
  }
  int maxi = 0, maxx, maxy;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (ans[i][j] > maxi) {
        maxi = ans[i][j];
        maxx = i;
        maxy = j;
      }
    }
  }
  if (maxi == 0)
    cout << "1 1" << endl;
  else
    cout << maxx << " " << maxy << endl;
  return 0;
}
