#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>a>>b>>c>>d; Int ans=0; for(Int i=a;i<=b;i++) for(Int j=c;j<=d;j++) if(i!=j) ans++; cout<