#include #include using namespace std; int H,W; string s[2000]; long dp[2000][2000]; main() { cin>>H>>W; for(int i=0;i>s[i]; for(int j=0;j