#include <bits/stdc++.h>
using namespace std;
char a[107][107];
int c[107][107];
bool flag = 1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    string s;
    cin >> s;
    for (int j = 1; j <= n; j++) {
      a[i][j] = s[j - 1];
    }
  }
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n - k + 1; j++) {
      cnt = 0;
      for (int l = j; l <= j + k - 1; l++) {
        if (a[i][l] == '.') cnt++;
      }
      if (cnt == k) {
        for (int l = j; l <= j + k - 1; l++) c[i][l]++;
      }
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n - k + 1; j++) {
      cnt = 0;
      for (int l = j; l <= j + k - 1; l++) {
        if (a[l][i] == '.') cnt++;
      }
      if (cnt == k) {
        for (int l = j; l <= j + k - 1; l++) c[l][i]++;
      }
    }
  }
  int mx = 0;
  int a, b;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      mx = max(mx, c[i][j]);
    }
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (c[i][j] == mx) {
        return !(cout << i << ' ' << j << '\n');
      }
    }
  }
  cout << a << ' ' << b << '\n';
  return 0;
}
