#include #include #include using namespace std; int w,h,m; int ary[100][100]; int mx[3]={1,-1,0}; int my[3]={0,0,-1}; int calc(int i,int j,int o,int tj,int ts,int te,vector> vv){ int i2=i; int ret=0; for(int i=0; i<3; ++i){ int px=o+mx[i]; int py=j+my[i]; if(0<=px && px=te){ ret=1; } else { vector> vv2=vv; if(vv2[py][px]==0){ vv2[py][px]=1; ret+=calc(i2,py,px,tj,ts,te,vv2); } } } } return ret; } int main(){ cin>>w>>h; int n=0; for(int i=0; i>m; ary[i][j]=m; if(n> v; for(int j=0; j t=make_tuple(j,s,e); v.push_back(t); for(int l=0; l(v[l]); int& ts=get<1>(v[l]); int& te=get<2>(v[l]); if(tj> vv; vv.resize(h); for(int i2=0;i20) x+=1; } } } if(x>=2) { cout<<"possible"<