#include <bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);

struct toado {
    double x, y;
    friend istream& operator >> (istream& in, toado &a)
    {
        in >> a.x >> a.y;
        return in;
    }
};

double distanceSquared(toado a, toado b)
{
    return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}

bool isParallelogram(toado a, toado b, toado c, toado d) {
    return distanceSquared(a, b) == distanceSquared(c, d) && distanceSquared(b, d) == distanceSquared(a, c);
}

int main()
{
    Faster;
    toado a, b, c, d;
    cin >> a >> b >> c >> d;

    if (isParallelogram(a, b, c, d))
    {
        cout << "Yes" << el;
    }
    else
    {
        cout << "No" << el;
    }
    return 0;
}
//code by chatgpt
