#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  while (cin >> n >> k) {
    vector<string> v(n);
    int cnt[105][105];
    memset(cnt, 0, sizeof(cnt));
    for (int a = 0; a < n; a++) cin >> v[a];
    for (int a = 0; a < n; a++) {
      for (int b = 0; b < n; b++) {
        int len = 0;
        for (int c = b; c < min(n, b + k); c++) {
          if (v[a][c] == '.') len++;
        }
        if (len == k) {
          for (int c = b; c < b + k; c++) cnt[a][c]++;
        }
        len = 0;
        for (int c = a; c < min(n, a + k); c++) {
          if (v[c][b] == '.') len++;
        }
        if (len == k) {
          for (int c = a; c < a + k; c++) cnt[c][b]++;
        }
      }
    }
    int ans = cnt[0][0], x = 0, y = 0;
    for (int a = 0; a < n; a++) {
      for (int b = 0; b < n; b++) {
        if (ans < cnt[a][b]) {
          ans = cnt[a][b];
          x = a, y = b;
        }
      }
    }
    x++, y++;
    cout << x << " " << y << endl;
  }
  return 0;
}
