#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  char a[n + 1][n + 1];
  int ans[n + 1][n + 1];
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++) {
      cin >> a[i][j];
      ans[i][j] = 0;
    }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n - k + 1; j++) {
      bool x = true;
      for (int t = j; t < j + k; t++) {
        if (a[i][t] == '#') {
          x = false;
          break;
        }
      }
      if (x) {
        for (int t = j; t < j + k; t++) ans[i][t]++;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n - k + 1; j++) {
      bool x = true;
      for (int t = j; t < j + k; t++) {
        if (a[t][i] == '#') {
          x = false;
          break;
        }
      }
      if (x) {
        for (int t = j; t < j + k; t++) ans[t][i]++;
      }
    }
  }
  int mx = ans[1][1];
  int p = 1, q = 1;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++) {
      if (ans[i][j] > mx) {
        mx = ans[i][j];
        p = i;
        q = j;
      }
    }
  cout << p << " " << q;
  return 0;
}
