#include <bits/stdc++.h>
using namespace std;
const long int z = 1000000007;
long long int h[200009];
int a[109][109], b[109][109];
int main() {
  int n, m, i, x = 0, v, j, d, c, k, p, max = 0;
  cin >> n >> m;
  string s[n];
  for (i = 0; i < n; i++) {
    cin >> s[i];
  }
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) {
      if (s[i][j] == '.' && (j == 0 || s[i][j - 1] == '#'))
        a[i][j] = 1;
      else if (s[i][j] == '.' && s[i][j - 1] == '.')
        a[i][j] = a[i][j - 1] + 1;
    }
  for (i = 0; i < n; i++) {
    for (j = n - 1; j >= 0; j--) {
      if (a[i][j] != 0) {
        v = j - a[i][j] + 1;
        if (a[i][j] > m - 1 && (a[i][j + 1] == 0 || j == n - 1)) {
          x = a[i][j] + 1 - m;
          if (x > m) x = m;
          for (int z = j; z >= v; z--) {
            if (j == z)
              a[i][z] = 1;
            else if (z != j && a[i][z] > x) {
              a[i][z] = a[i][z + 1] + 1;
              if (a[i][z] > x) a[i][z] = x;
            }
          }
        } else {
          v = j - a[i][j] + 1;
          for (int z = j; z >= v; z--) {
            a[i][z] = 0;
          }
        }
        j = v;
      }
    }
  }
  for (j = 0; j < n; j++)
    for (i = 0; i < n; i++) {
      if (s[i][j] == '.' && (i == 0 || s[i - 1][j] == '#'))
        b[i][j] = 1;
      else if (s[i][j] == '.' && s[i - 1][j] == '.')
        b[i][j] = b[i - 1][j] + 1;
    }
  for (j = 0; j < n; j++) {
    for (i = n - 1; i >= 0; i--) {
      if (b[i][j] != 0) {
        v = i - b[i][j] + 1;
        if (b[i][j] > m - 1 && (b[i + 1][j] == 0 || i == n - 1)) {
          x = b[i][j] + 1 - m;
          if (x > m) x = m;
          for (int z = i; z >= v; z--) {
            if (i == z)
              b[z][j] = 1;
            else if (z != i && b[z][j] > x) {
              b[z][j] = b[z + 1][j] + 1;
              if (b[z][j] > x) b[z][j] = x;
            }
          }
        } else {
          for (int z = i; z >= v; z--) {
            b[z][j] = 0;
          }
        }
        i = v;
      }
    }
  }
  int sum = 0, y = 0;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      sum = a[i][j] + b[i][j];
      if (sum > max) {
        x = i;
        y = j;
        max = sum;
      }
    }
  }
  cout << x + 1 << " " << y + 1;
}
