#include <bits/stdc++.h>
using namespace std;
int n, k;
char grid[105][105];
int ans[105][105];
int solve(int ic, int jc, int k) {
  int ret = 0, c = 0, fn = 0;
  for (int i = jc, l = 0; l < k && i < n && (grid[ic][i] != '#'); ++i, l++)
    ret++;
  if (ret == k) {
    for (int i = jc, l = 0; l < k && i < n && (grid[ic][i] != '#'); ++i, l++)
      ans[ic][i]++;
  }
  ret = 0;
  for (int i = jc, l = 0; l < k && i >= 0 && (grid[ic][i] != '#'); --i, l++)
    ret++;
  if (ret == k) {
    for (int i = jc, l = 0; l < k && i >= 0 && (grid[ic][i] != '#'); --i, l++)
      ans[ic][i]++;
  }
  ret = 0;
  for (int i = ic, l = 0; l < k && i < n && (grid[i][jc] != '#'); ++i, l++)
    ret++;
  if (ret == k) {
    for (int i = ic, l = 0; l < k && i < n && (grid[i][jc] != '#'); ++i, ++l)
      ans[i][jc]++;
  }
  ret = 0;
  for (int i = ic, l = 0; l < k && i >= 0 && (grid[i][jc] != '#'); --i, l++)
    ret++;
  if (ret == k) {
    for (int i = ic, l = 0; l < k && i >= 0 && (grid[i][jc] != '#'); --i, l++)
      ans[i][jc]++;
  }
  return fn;
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n >> k;
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < n; ++j) cin >> grid[i][j];
  int mx = 0;
  pair<int, int> out[1];
  out[0] = {1, 1};
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      if (grid[i][j] == '.') {
        int ret = solve(i, j, k);
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      if (ans[i][j] > mx) mx = ans[i][j], out[0] = {i + 1, j + 1};
    }
  }
  cout << out[0].first << " " << out[0].second << "\n";
  return 0;
}
