#include <bits/stdc++.h>
using namespace std;
int k, n;
const int MAXN = 105;
char grid[MAXN][MAXN];
int occ[MAXN][MAXN];
int main() {
  ios::sync_with_stdio(0);
  cin >> n >> k;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> grid[i][j];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      bool can = true;
      for (int c = 0; c < k; c++)
        if (j + c >= n || grid[i][j + c] == '#') can = false;
      if (can) {
        for (int c = 0; c < k; c++) occ[i][j + c]++;
      }
      can = true;
      for (int c = 0; c < k; c++)
        if (i + c >= n || grid[i + c][j] == '#') can = false;
      if (can) {
        for (int c = 0; c < k; c++) occ[i + c][j]++;
      }
    }
  int x = 0, y = 0, big = 0;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++)
      if (big < occ[i][j]) {
        x = i;
        y = j;
        big = occ[i][j];
      }
  cout << x + 1 << " " << y + 1 << "\n";
  return 0;
}
