#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, l, r, y, b, i = 0, j = 100000, m, sum = 0, count = 0;
  string str1, str2;
  long long x, n, s, k, p;
  char c;
  vector<long long> v1, v2;
  cin >> n >> l;
  x = (long long)('.');
  y = (long long)('#');
  long long arr[n][n];
  long long arr1[n][n];
  j = 0;
  while (i < n) {
    j = 0;
    while (j < n) {
      arr[i][j] = 0;
      j++;
    }
    i++;
  }
  i = 0;
  j = 0;
  i = 0;
  j = 0;
  while (i < n) {
    j = 0;
    cin >> str1;
    while (j < n) {
      arr1[i][j] = (long long)(str1[j]);
      arr[i][j] = 0;
      j++;
    }
    i++;
  }
  i = 0;
  j = 0;
  i = 0;
  j = 0;
  while (i < n) {
    j = 0;
    while ((j + l - 1) < n) {
      m = j;
      b = 0;
      count = 0;
      while (b < l) {
        if (arr1[i][m + b] == x) {
          count++;
        } else {
          break;
        }
        b++;
      }
      if (count == l) {
        m = j;
        b = 0;
        while (b < l) {
          arr[i][m]++;
          b++;
          m++;
        }
      }
      j++;
    }
    i++;
  }
  i = 0;
  j = 0;
  while (i < n) {
    j = 0;
    while ((j + l - 1) < n) {
      m = j;
      b = 0;
      count = 0;
      while (b < l) {
        if (arr1[m + b][i] == x) {
          count++;
        } else {
          break;
        }
        b++;
      }
      if (count == l) {
        m = j;
        b = 0;
        while (b < l) {
          arr[m][i]++;
          b++;
          m++;
        }
      }
      j++;
    }
    i++;
  }
  a = 0;
  b = 0;
  i = 0;
  j = 0;
  m = 0;
  while (i < n) {
    j = 0;
    while (j < n) {
      if (m < arr[i][j]) {
        m = arr[i][j];
        a = i;
        b = j;
      }
      j++;
    }
    cout << "\n";
    i++;
  }
  cout << a + 1 << " " << b + 1 << "\n";
}
