#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
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgZWwgIlxuIgojZGVmaW5lIGxsIGxvbmcgbG9uZwojZGVmaW5lIHVsbCB1bnNpZ25lZCBsb25nIGxvbmcKI2RlZmluZSBzZSBzZWNvbmQKI2RlZmluZSBmaSBmaXJzdAojZGVmaW5lIGJlIGJlZ2luKCkKI2RlZmluZSBlbiBlbmQoKQojZGVmaW5lIEZhc3RlciBjaW4udGllKDApOyBjb3V0LnRpZSgwKTsgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsKCnN0cnVjdCB0b2FkbyB7CiAgICBkb3VibGUgeCwgeTsKICAgIGZyaWVuZCBpc3RyZWFtJiBvcGVyYXRvciA+PiAoaXN0cmVhbSYgaW4sIHRvYWRvICZhKQogICAgewogICAgICAgIGluID4+IGEueCA+PiBhLnk7CiAgICAgICAgcmV0dXJuIGluOwogICAgfQp9OwoKZG91YmxlIGRpc3RhbmNlU3F1YXJlZCh0b2FkbyBhLCB0b2FkbyBiKQp7CiAgICByZXR1cm4gKGEueCAtIGIueCkgKiAoYS54IC0gYi54KSArIChhLnk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