#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
double xA, yA, xB, yB, xC, yC, xD, yD;
cin >> xA >> yA >> xB >> yB >> xC >> yC >> xD >> yD;
double AB = sqrt((xA-xB)*(xA-xB)+(yA-yB)*(yA-yB)),
BC = sqrt((xB-xC)*(xB-xC)+(yB-yC)*(yB-yC)),
CD = sqrt((xC-xD)*(xC-xD)+(yC-yD)*(yC-yD)),
DA = sqrt((xD-xA)*(xD-xA)+(yD-yA)*(yD-yA)),
AC = sqrt((xA-xC)*(xA-xC)+(yA-yC)*(yA-yC)),
BD = sqrt((xB-xD)*(xB-xD)+(yB-yD)*(yB-yD));
unordered_map<double,ll> ans;
ans[AB]++;
ans[BC]++;
ans[DA]++;
ans[AC]++;
ans[BD]++;
ans[CD]++;
for(pair<double,ll> it : ans) {
if(it.second>=4) {cout << "Yes"; return 0;}
}
cout << "No";
}
//from Bip
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnR5cGVkZWYgbG9uZyBsb25nIGxsOwppbnQgbWFpbigpIHsKICAgIGRvdWJsZSB4QSwgeUEsIHhCLCB5QiwgeEMsIHlDLCB4RCwgeUQ7CiAgICBjaW4gPj4geEEgPj4geUEgPj4geEIgPj4geUIgPj4geEMgPj4geUMgPj4geEQgPj4geUQ7CiAgICBkb3VibGUgQUIgPSBzcXJ0KCh4QS14QikqKHhBLXhCKSsoeUEteUIpKih5QS15QikpLAogICAgQkMgPSBzcXJ0KCh4Qi14QykqKHhCLXhDKSsoeUIteUMpKih5Qi15QykpLAogICAgQ0QgPSBzcXJ0KCh4Qy14RCkqKHhDLXhEKSsoeUMteUQpKih5Qy15RCkpLAogICAgREEgPSBzcXJ0KCh4RC14QSkqKHhELXhBKSsoeUQteUEpKih5RC15QSkpLAogICAgQUMgPSBzcXJ0KCh4QS14QykqKHhBLXhDKSsoeUEteUMpKih5QS15QykpLAogICAgQkQgPSBzcXJ0KCh4Qi14RCkqKHhCLXhEKSsoeUIteUQpKih5Qi15RCkpOwogICAgdW5vcmRlcmVkX21hcDxkb3VibGUsbGw+IGFuczsKICAgIGFuc1tBQl0rKzsKICAgIGFuc1tCQ10rKzsKICAgIGFuc1tEQV0rKzsKICAgIGFuc1tBQ10rKzsKICAgIGFuc1tCRF0rKzsKICAgIGFuc1tDRF0rKzsKICAgIGZvcihwYWlyPGRvdWJsZSxsbD4gaXQgOiBhbnMpIHsKICAgICAgICBpZihpdC5zZWNvbmQ+PTQpIHtjb3V0IDw8ICJZZXMiOyByZXR1cm4gMDt9CiAgICB9CiAgICBjb3V0IDw8ICJObyI7Cn0KLy9mcm9tIEJpcA==