#include using namespace std; #define ll long long #define mp make_pair #define pii pair map grid; ll recur(int n,int m){ if(n==1) return m-1; else if(m==1) return n-1; if(n>m>>n; cout<