#include #include using namespace std; int main(void){ int n, m; bool flag =false; cin >> n >> m; for(int i=0; i> str; for(int j=0; j