#include <bits/stdc++.h>
using namespace std;
string arr[105];
int cnt[105][105];
int main() {
  int k, n;
  cin >> n >> k;
  for (int i = 0; i < n; ++i) cin >> arr[i];
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j <= n - k; ++j) {
      bool f = 1;
      for (int a = 0; a < k; ++a)
        if (arr[i][j + a] == '#') {
          f = 0;
          break;
        }
      if (f) {
        for (int a = 0; a < k; ++a) cnt[i][j + a]++;
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j <= n - k; ++j) {
      bool f = 1;
      for (int a = 0; a < k; ++a)
        if (arr[j + a][i] == '#') {
          f = 0;
          break;
        }
      if (f) {
        for (int a = 0; a < k; ++a) cnt[j + a][i]++;
      }
    }
  }
  int r = 0, c = 0;
  int maxi = -1;
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < n; ++j)
      if (arr[i][j] != '#') {
        if (cnt[i][j] > maxi) maxi = cnt[i][j], r = i, c = j;
      }
  cout << r + 1 << " " << c + 1 << endl;
  return 0;
}
