#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.setf(ios::fixed);
  cout.setf(ios::showpoint);
  ;
  {
    int n, k, x = 1, y = 1, c = 0, ans = 0;
    cin >> n >> k;
    char a[n][n];
    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++) {
        int l = 0, r = 0, c = 0;
        while (l < k && i - l >= 0 && a[i - l][j] == '.') l++;
        while (r < k && i + r <= n - 1 && a[i + r][j] == '.') r++;
        c += max(0, r + l - k);
        if (k != 1) {
          l = 0, r = 0;
          while (l < k && j - l >= 0 && a[i][j - l] == '.') l++;
          while (r < k && j + r <= n - 1 && a[i][j + r] == '.') r++;
          c += max(0, r + l - k);
        }
        if (c > ans) {
          ans = c;
          x = i + 1;
          y = j + 1;
        }
      }
    }
    cout << x << " " << y << "\n";
  }
}
