#include <bits/stdc++.h>
using namespace std;
char v[100][100];
int ans[100][100];
int main() {
  int n, k, i, j, stx, sty, enx, eny;
  cin >> n >> k;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++) ans[i][j] = 0;
  string s;
  for (i = 0; i < n; i++) {
    cin >> s;
    for (j = 0; j < n; j++) v[i][j] = s[j];
  }
  for (stx = 0; stx + k - 1 < n; stx++) {
    for (sty = 0; sty < n; sty++) {
      enx = stx + k - 1;
      eny = sty;
      bool correct = true;
      for (i = stx; i <= enx; i++)
        if (v[i][sty] == '#') {
          correct = false;
          break;
        }
      if (correct) {
        for (i = stx; i <= enx; i++) ans[i][sty]++;
      }
    }
  }
  for (stx = 0; stx < n; stx++) {
    for (sty = 0; sty + k - 1 < n; sty++) {
      enx = stx;
      eny = sty + k - 1;
      bool correct = true;
      for (i = sty; i <= eny; i++)
        if (v[stx][i] == '#') {
          correct = false;
          break;
        }
      if (correct) {
        for (i = sty; i <= eny; i++) ans[stx][i]++;
      }
    }
  }
  int ansx = 0, ansy = 0;
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      if (ans[ansx][ansy] < ans[i][j]) {
        ansx = i;
        ansy = j;
      }
  cout << ansx + 1 << ' ' << ansy + 1 << '\n';
  return 0;
}
