#include using namespace std; using ll = long long; #define rep(i,n) for(ll i=0;i fac(MAX_N), finv(MAX_N), inv(MAX_N); void init(){ fac[0] = fac[1] = 1; finv[0] = finv[1] = 1; inv[1] = 1; for(int i=2;iN)return i-1; } return n; } bool DEB=0; int main(){ ll X,Y,Z,K; cin>>X>>Y>>Z>>K; ll D=X+Y+Z; ll an=0; init(); for(ll d=1;d<=D;d++){ ll zanD=D-d; if(DEB)cout<0){ res*=modpow(okY,inY); res%=MOD; } if(DEB)cout<<2<<":"<inY){ res*=mperm(D-X-inY,Y-inY); res%=MOD; } if(DEB)cout<<3<<":"<