#include using namespace std; typedef long long ll; const ll mod=1e9+7; int A,B,C,D; int main(){ cin.tie(0); ios::sync_with_stdio(false); cin>>A>>B>>C>>D; int cnt=(B-A+1)*(D-C+1); for(int i=A; i<=B; i++){ for(int j=C; j<=D; j++){ if(i==j){ cnt--; } } } cout<