#include <iostream>
#include <string>
#include <math.h>
#include <fstream>
using namespace std;
int aa(int x1, int x2) {
return x2 - x1;
};
int bb(int y1, int y2) {
return y1 - y2;
};
int PP(int a, int b) {
return 2 * a + 2 * b;
};
int SS(int a, int b) {
return a * b;
};
float CC1(float a, int x) {
return x + (a / 2);
};
float CC2(float b, int y) {
return y - (b / 2);
};
int main()
{
int x[4], y[4], a, b;
float P, S, C1, C2;
ifstream jija("input.txt");
for (int i = 0; i < 4; i++)
{
jija >> x[i] >> y[i];
}
a = aa(x[0], x[1]);
b = bb(y[1], y[2]);
P = PP(a, b);
S = SS(a, b);
C1 = CC1(a, x[0]);
C2 = CC2(b, y[0]);
cout << S << endl << P << endl << C1 << " " << C2;
}