#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  char a[n][n];
  int l, r, ans = 0, maxi = 0, x = 0, y = 0;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> a[i][j];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      ans = 0;
      l = 0;
      while (l < k && i - l >= 0 && a[i - l][j] == '.') l++;
      r = 0;
      while (r < k && r + i < n && a[i + r][j] == '.') r++;
      ans += max(0, r + l - k);
      if (k != 1) {
        l = 0;
        while (l < k && j - l >= 0 && a[i][j - l] == '.') l++;
        r = 0;
        while (r < k && j + r < n && a[i][r + j] == '.') r++;
        ans += max(0, r + l - k);
      }
      if (ans > maxi) {
        maxi = ans;
        x = i;
        y = j;
      }
    }
  }
  cout << x + 1 << " " << y + 1;
}
