#include <bits/stdc++.h>
using namespace std;
string grid[110];
int check[110][110];
int main() {
  int n, k, i, j, x, y;
  cin >> n >> k;
  for (int i = 0; i < n; i++) cin >> grid[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (grid[i][j] == '#') continue;
      x = j;
      y = i;
      int cnt1 = 0;
      for (int a = x; a < x + k; a++) {
        if (grid[i][a] == '.')
          cnt1++;
        else
          break;
      }
      int cnt2 = 0;
      for (int a = x; a > x - k; a--) {
        if (grid[i][a] == '.')
          cnt2++;
        else
          break;
      }
      int cnt3 = 0;
      for (int a = y; a < y + k; a++) {
        if (grid[a][x] == '.')
          cnt3++;
        else
          break;
      }
      int cnt4 = 0;
      for (int a = y; a > y - k; a--) {
        if (a < 0) continue;
        if (grid[a][x] == '.')
          cnt4++;
        else
          break;
      }
      int row_res = 0;
      int row_pos = 1;
      int col_res = 0;
      int col_pos = 1;
      if (cnt1 != 0 and cnt2 != 0) row_pos = min(cnt1, cnt2);
      int seg_len = cnt1 + cnt2 - 1;
      if (seg_len >= k) row_res = min(seg_len - k + 1, row_pos);
      if (cnt3 != 0 and cnt4 != 0) col_pos = min(cnt3, cnt4);
      seg_len = cnt3 + cnt4 - 1;
      if (seg_len >= k) col_res = min(seg_len - k + 1, col_pos);
      check[i][j] = row_res + col_res;
    }
  }
  int mxx = 0;
  x = 1;
  y = 1;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      if (check[i][j] > mxx) {
        mxx = check[i][j];
        x = i + 1;
        y = j + 1;
      }
    }
  cout << x << " " << y << endl;
  return 0;
}
