#include #define F first #define S second using namespace std; typedef long long ll; typedef pair P; typedef pair PP; ll n,h,w,m,a,b,ok,ok2,cnt,tmp,ans,dp[30][30],dp2[30][30],M; string s[30]; vector v; ll fib(ll a,ll b){ if(a==1)return 0; if(a==2)return 1; return (fib(a-1,b)+fib(a-2,b))%b; } int main(void){ cin>>n>>m; cout<