#include <bits/stdc++.h>
using namespace std;
int main() {
  long long ax, ay, bx, by, cx, cy, d1, d2;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  float s1, s2;
  if ((by - ay) * (cx - bx) == (cy - by) * (bx - ax)) {
    cout << "No";
  } else {
    d1 = (((bx - ax) * (bx - ax)) + ((by - ay) * (by - ay)));
    d2 = (((cx - bx) * (cx - bx)) + ((cy - by) * (cy - by)));
    if (d1 == d2)
      cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}
