#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<string> a(n);
  int num[105][105] = {0};
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++)
      if (a[i][j] == '.') {
        int c = 0;
        c = 0;
        for (int jj = j; jj < n && a[i][jj] == '.'; jj++, c++)
          ;
        if (c >= k) {
          for (int jj = j; jj < j + k; jj++) {
            num[i][jj]++;
          }
        }
        c = 0;
        for (int ii = i; ii < n && a[ii][j] == '.'; ii++, c++)
          ;
        if (c >= k) {
          for (int ii = i; ii < i + k; ii++) {
            num[ii][j]++;
          }
        }
      }
  int max_val = 0;
  int max_x = 1, max_y = 1;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      if (num[i][j] > max_val) {
        max_val = num[i][j];
        max_x = i + 1;
        max_y = j + 1;
      }
    }
  cout << max_x << " " << max_y << "\n";
}
