#include<bits/stdc++.h> using namespace std; double a,b,c,d; int main(){ cin>>a>>b>>c>>d; cout<<setprecision(2)<<fixed<<(a-c)*(b-d) return 0; }