#include #include using namespace std; char sir[1200000]; int main() { int n,m,k,i; cin>>n>>m>>k; for(i=0;i>sir[i]; int min_x=1,min_y=1,max_x=n,max_y=m; int x=0,y=0; for(i=0;i