#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[100][101];
  int b[100][101] = {0};
  int k, n;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      int l = 0;
      int p = j, r = j;
      while (a[i][r] == '.') {
        l++;
        r++;
        if (l == k) break;
      }
      if (l >= k) {
        for (int z = p; z < r; z++) {
          b[i][z]++;
        }
      }
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      int l = 0;
      int p = j, r = j;
      while (a[r][i] == '.') {
        l++;
        r++;
        if (l == k) break;
      }
      if (l >= k) {
        for (int z = p; z < r; z++) {
          b[z][i]++;
        }
      }
    }
  }
  int ma = -1, x, y;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (ma < b[i][j]) {
        ma = b[i][j];
        x = i + 1;
        y = j + 1;
      }
    }
  }
  cout << x << " " << y << endl;
  return 0;
}
