#include using namespace std; #define rep(i,a,b) for(int i=a;i> N >> M >> S >> T; rep(i, 0, 1010) rep(j, 0, 1010) dp[i][j] = -1; cout << rec(N, M) << endl; }