#include <bits/stdc++.h>
using namespace std;
char s[102][102];
int main() {
  int n, k, i, h, r = 1, c = 1, Max = 0, t, a, b, sum;
  scanf("%d %d\n", &n, &k);
  for (i = 1; i <= n; i++) scanf("%s", &s[i][1]);
  for (i = 1; i <= n; i++)
    for (h = 1; h <= n; h++) {
      if (s[i][h] == '#') continue;
      for (t = h + 1, a = 0; t <= n; t++, a++)
        if (s[i][t] == '#') break;
      for (t = h - 1, b = 0; t > 0; t--, b++)
        if (s[i][t] == '#') break;
      sum = max(0, min(k - 1, a) + min(k - 1, b) - k + 2);
      for (t = i + 1, a = 0; t <= n; t++, a++)
        if (s[t][h] == '#') break;
      for (t = i - 1, b = 0; t > 0; t--, b++)
        if (s[t][h] == '#') break;
      sum += max(0, min(k - 1, a) + min(k - 1, b) - k + 2);
      if (sum > Max) {
        Max = sum;
        r = i;
        c = h;
      }
    }
  printf("%d %d", r, c);
  return 0;
}
