#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  long long ax, ay, bx, by, cx, cy, ab, bc;
  double slopeAB, slopeBC;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  if (ax == cx && ay == cy) {
    cout << "Yes\n";
  } else {
    ab = (ax - bx) * (ax - bx) + (ay - by) * (ay - by);
    bc = (cx - bx) * (cx - bx) + (cy - by) * (cy - by);
    slopeAB = (double)(ay - by) / (double)(ax - bx);
    slopeBC = (double)(by - cy) / (double)(bx - cx);
    if (ab == bc && slopeAB != slopeBC) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
  return 0;
}
