#include <iostream>
#include <fstream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
ifstream in("input.txt");
pair <float, float > a;
pair <float, float> b;
pair<float, float> c;
pair<float, float> d;
float A, B, P, S,Cx,Cy;
in >> a.first >> a.second >> b.first >> b.second >> c.first >> c.second >> d.first >> d.second;
A = a.first - b.first + 2;
B = a.second - b.second + 2;
P = 2 * (A + B);
S = A * B;
Cx = (a.first + b.first) / 2;
Cy = (a.second + d.second) / 2;
cout << "ПЕРИМЕТР - " << P << ' ' << "ПЛОЩАДЬ - " << S << ' ' << "Центр тяжести x и y - " << Cx << ' ' << Cy;
}