#include using namespace std; const long long INF = 1LL << 60; #define MOD 1000000007; typedef long long ll; #define writeln(n) cout< P; typedef pair Psi; char mp[55][55]; int main() { int h,w; cin>>h>>w; for(int i=0; i>mp[i][j]; } } for(int i=0; i