#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  char a[101][101];
  int j = 0;
  int i = 0;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      cin >> a[i][j];
    }
  }
  int res[101][101] = {0};
  for (int i = 0; i < n; i++) {
    int t = 0;
    for (int j = 0; j < n; j++) {
      if (a[i][j] == '.')
        t++;
      else
        t = 0;
      if (t >= k) {
        for (int s = 0; s < k; s++) {
          res[i][j - s]++;
        }
      }
    }
  }
  for (int i = 0; i < n; i++) {
    int t = 0;
    for (int j = 0; j < n; j++) {
      if (a[j][i] == '.')
        t++;
      else
        t = 0;
      if (t >= k) {
        for (int s = 0; s < k; s++) {
          res[j - s][i]++;
        }
      }
    }
  }
  int f = 1, s = 1, m = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (res[i][j] > m) {
        m = res[i][j];
        f = i + 1;
        s = j + 1;
      }
    }
  }
  cout << f << " " << s;
}
