#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-10;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  complex<long double> a(ax, ay), b(bx, by), c(cx, cy);
  long double d1 = abs(b - a), d2 = abs(c - b);
  long double ang1 = arg(b - a), ang2 = arg(c - b);
  cout << ((abs(d1 - d2) < EPS && abs(ang1 - ang2) > EPS) ? "Yes" : "No")
       << endl;
}
