#include <bits/stdc++.h>
using namespace std;
long double ax, ay, bx, by, cx, cy;
long double dis(long double x1, long double y1, long double x2,
                long double y2) {
  return sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)));
}
int main() {
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  long double d1 = dis(ax, ay, bx, by);
  long double d2 = dis(bx, by, cx, cy);
  if (((by - ay) * (cx - bx)) == ((bx - ax) * (cy - by)) || (d1 != d2))
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
