using namespace std; int x1,x2,y3,y2; int main(){ cin >> x1 >> x2 >>y3 >> y2; int x = abs(x1-x2); int y = abs(y3-y2); cout << x * y <<endl; return 0; }