#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; //B(n,V(n)) ll dp[11][11][22]; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int h,w; cin>>h>>w; V A(h); rep(i,h) cin>>A[i]; dp[0][0][1]=1; rep(i,h) rep(j,w) rep(k,h+w){ if(A[i][j]=='#') continue; if(i