#include <bits/stdc++.h>
using namespace std;
int long long n, x, k, s, pq[103][103];
char ar[103][103];
void func(int r, int c) {
  int cc = 0, pp = 0;
  for (int i = r; i < n; i++) {
    if (ar[i][c] != '.')
      break;
    else
      cc++;
  }
  if (cc >= k) {
    for (int i = r; i < r + k && i < n; i++) {
      pq[i][c]++;
    }
  }
  cc = 0;
  for (int i = c; i < n; i++) {
    if (ar[r][i] != '.')
      break;
    else
      cc++;
  }
  if (cc >= k) {
    for (int i = c; i < c + k && i < n; i++) {
      pq[r][i]++;
    }
  }
  return;
}
int main() {
  vector<pair<int, int> > v;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> ar[i][j];
      if (ar[i][j] == '.') {
        v.push_back(make_pair(i, j));
        pq[i][j] = 0;
      }
    }
  }
  for (int i = 0; i < v.size(); i++) {
    int long long r = v[i].first, c = v[i].second;
    func(r, c);
  }
  int long long mx = 0, rw = 0, cl = 0;
  for (int i = 0; i < v.size(); i++) {
    int long long r = v[i].first, c = v[i].second;
    if (mx < pq[r][c]) {
      mx = pq[r][c];
      rw = r;
      cl = c;
    }
  }
  cout << rw + 1 << " " << cl + 1;
  return 0;
}
