#include<iostream>
using namespace std;
class Point
{
public:
Point(double newx, double newy) {
x = newx;
y = newy;
}
Point(const Point& p) {
x = p.x;
y = p.y;
}
《《《《《《《《《《《 《《《 double getx()
{
return x;
}
double gety()
{
return y;
}》》》》》》》》》》》》》》》》》》
private:
double x, y;
};
class Rectangle
{
private:
Point L, R;
public:
Rectangle(Point p1, Point p2) :L(p1), R(p2) {
};
double getarea() {
《《《《《《《《《《《《《《《 if ((R.getx() - L.getx()) * (R.gety() - L.gety()) >= 0)
return (R.getx() - L.getx()) * (R.gety() - L.gety());
else
return -(R.getx() - L.getx()) * (R.gety() - L.gety());
}》》》》》》》》》》》》》》》
};
int main()
{
double x, y;
cin >> x >> y;
Point L(x, y);
cin >> x >> y;
Point R(x, y);
Rectangle Rec(L, R);
cout << Rec.getarea() << endl;
return 0;
}