#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll N = 123;
ll cnt[N][N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ll n, k;
  cin >> n >> k;
  string s[n + 1];
  for (ll i = 1; i <= n; i++) {
    cin >> s[i];
    s[i] = " " + s[i];
  }
  for (ll i = 1; i <= n; i++) {
    for (ll j = 1; j <= n; j++) {
      bool ok = 1;
      if (i + k - 1 <= n) {
        for (ll len = 0; len < k; len++) {
          ok &= (s[i + len][j] == '.');
        }
        if (ok) {
          for (ll len = 0; len < k; len++) {
            cnt[i + len][j]++;
          }
        }
      }
      ok = 1;
      if (j + k - 1 <= n) {
        for (ll len = 0; len < k; len++) {
          ok &= (s[i][j + len] == '.');
        }
        if (ok) {
          for (ll len = 0; len < k; len++) {
            cnt[i][j + len]++;
          }
        }
      }
    }
  }
  ll mx = 1, my = 1, tot = 0;
  for (ll i = 1; i <= n; i++) {
    for (ll j = 1; j <= n; j++) {
      if (cnt[i][j] > tot) {
        tot = cnt[i][j];
        mx = i;
        my = j;
      }
    }
  }
  cout << mx << ' ' << my << '\n';
  return 0;
}
