#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  long long n, k;
  cin >> n >> k;
  vector<vector<char>> board(n, vector<char>(n, '.'));
  vector<vector<long long>> cnt(n, vector<long long>(n, 0));
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < n; j++) {
      cin >> board[i][j];
    }
  }
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j <= n - k; j++) {
      bool flag = true;
      for (long long x = j; x < j + k; x++) {
        if (board[i][x] != '.') {
          flag = false;
          break;
        }
      }
      if (!flag) continue;
      for (long long x = j; x < j + k; x++) {
        cnt[i][x]++;
      }
    }
  }
  for (long long i = 0; i <= n - k; i++) {
    for (long long j = 0; j < n; j++) {
      bool flag = true;
      for (long long x = i; x < i + k; x++) {
        if (board[x][j] != '.') {
          flag = false;
          break;
        }
      }
      if (!flag) continue;
      for (long long x = i; x < i + k; x++) {
        cnt[x][j]++;
      }
    }
  }
  long long mxX = 0, mxY = 0;
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < n; j++) {
      if (cnt[i][j] > cnt[mxX][mxY]) {
        mxX = i;
        mxY = j;
      }
    }
  }
  cout << mxX + 1 << " " << mxY + 1;
  return 0;
}
