#include int main(void){ int A,B,C,D; std::cin>>A>>B>>C>>D; std::cout<<(B-A+1)*(D-C+1)-((B>D?D:B)-(A>C?A:C)+1)<