#include <bits/stdc++.h>
using namespace std;
#define x first
#define y second
const int N = 100 + 5;
typedef pair<int, int> PII;
char g[N][N];
int d[N][N];
int dx[4] = {-1,0,1,0}, dy[4] = {0,-1,0,1};
int h, m;
int bfs(int sx, int sy)
{
queue<PII> q;
d[s...