#include <bits/stdc++.h>
char field[128][128];
int ships[128][128];
int main() {
  int n, k, i, j, l;
  scanf("%d %d", &n, &k);
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      scanf(" %c", &field[i][j]);
      ships[i][j] = 0;
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      if (i <= n - k) {
        bool p = false;
        for (l = 0; l < k; l++) {
          p |= field[i + l][j] == '#';
        }
        if (!p) {
          for (l = 0; l < k; l++) {
            ships[i + l][j]++;
          }
        }
      }
      if (j <= n - k) {
        bool p = false;
        for (l = 0; l < k; l++) {
          p |= field[i][j + l] == '#';
        }
        if (!p) {
          for (l = 0; l < k; l++) {
            ships[i][j + l]++;
          }
        }
      }
    }
  }
  int m, mi, mj;
  m = mi = mj = 0;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      if (ships[i][j] > m) {
        m = ships[i][j];
        mi = i;
        mj = j;
      }
    }
  }
  printf("%d %d\n", mi + 1, mj + 1);
  return 0;
}
