#include <bits/stdc++.h>
using namespace std;
int n, k, cnt[101][101];
char a[101][101];
int main() {
  cin >> n >> k;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++) cin >> a[i][j];
  for (int i = 1; i <= n - k + 1; i++) {
    for (int j = 1; j <= n; j++) {
      int cn = 0;
      for (int t = i; t < i + k; t++) {
        if (a[t][j] == '.') cn++;
      }
      if (cn == k) {
        for (int t = i; t < i + k; t++) cnt[t][j]++;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n - k + 1; j++) {
      int cn = 0;
      for (int t = j; t < j + k; t++) {
        if (a[i][t] == '.') cn++;
      }
      if (cn == k) {
        for (int t = j; t < j + k; t++) cnt[i][t]++;
      }
    }
  }
  int mx = 0;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++) mx = max(cnt[i][j], mx);
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (cnt[i][j] == mx) {
        cout << i << " " << j << endl;
        return 0;
      }
    }
  }
}
