#include <bits/stdc++.h>
using namespace std;
int mat[105][105];
int main() {
  int n, k;
  char o;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      cin >> o;
      if (o == '#')
        mat[i][j] = -1;
      else
        mat[i][j] = 0;
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      int c = 0, r = 0;
      if (mat[i][j] != -1) {
        for (int l = 0; l < k; l++) {
          if (c != k) {
            if (j + l <= n) {
              if (mat[i][j + l] != -1) {
                c++;
              } else {
                c = 0;
                break;
              }
            }
          }
        }
        for (int l = 0; l < k; l++) {
          if (r != k) {
            if (i + l <= n) {
              if (mat[i + l][j] != -1) {
                r++;
              } else {
                r = 0;
                break;
              }
            }
          }
        }
      }
      if (c == k) {
        for (int l = 0; l < k; l++) {
          mat[i][j + l]++;
        }
      }
      if (r == k) {
        for (int l = 0; l < k; l++) {
          mat[i + l][j]++;
        }
      }
    }
  }
  int mx = INT_MIN;
  int rw, cl;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (mx < mat[i][j]) {
        rw = i;
        cl = j;
        mx = mat[i][j];
      }
    }
  }
  cout << rw << " " << cl << endl;
  return 0;
}
