#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  char s[105][105];
  int ans[105][105];
  bool ok = true;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> s[i][j];
      ans[i][j] = 0;
    }
  }
  for (int i = 0; i < n + 1; i++) {
    s[n][i] = '#';
    s[i][n] = '#';
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (s[i][j] == '#')
        continue;
      else {
        ok = true;
        for (int p = 0; p < k; p++) {
          if (s[i][p + j] == '#') ok = false;
        }
        if (ok) {
          for (int p = 0; p < k; p++) ans[i][j + p]++;
        }
        ok = true;
        for (int p = 0; p < k; p++) {
          if (s[i + p][j] == '#') ok = false;
        }
        if (ok) {
          for (int p = 0; p < k; p++) {
            ans[i + p][j]++;
          }
        }
      }
    }
  }
  int MAX = 0;
  int ansi = 0, ansj = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (MAX < ans[i][j]) {
        MAX = ans[i][j];
        ansi = i;
        ansj = j;
      }
    }
  }
  printf("%d %d", ansi + 1, ansj + 1);
  return 0;
}
