#include <bits/stdc++.h>
using namespace std;
int n, k, pr[105], v[105][105], r[105][105], ansx = 1, ansy = 1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n >> k;
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j <= n; ++j) {
      char q;
      cin >> q;
      if (q == '#')
        v[i][j] = 1;
      else
        v[i][j] = 0;
    }
  for (int i = 1; i <= n; ++i) {
    memset(pr, 0, sizeof(pr));
    for (int j = 1; j <= n; ++j) pr[j] = pr[j - 1] + v[i][j];
    for (int j = k; j <= n; ++j)
      if (pr[j] - pr[j - k] == 0)
        for (int t = j - k + 1; t <= j; ++t) ++r[i][t];
  }
  for (int j = 1; j <= n; ++j) {
    memset(pr, 0, sizeof(pr));
    for (int i = 1; i <= n; ++i) pr[i] = pr[i - 1] + v[i][j];
    for (int i = k; i <= n; ++i)
      if (pr[i] - pr[i - k] == 0)
        for (int t = i - k + 1; t <= i; ++t) ++r[t][j];
  }
  int mx = -1;
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j <= n; ++j)
      if (r[i][j] > mx) {
        mx = r[i][j];
        ansx = i;
        ansy = j;
      }
  cout << ansx << " " << ansy;
  return 0;
}
