#include <bits/stdc++.h>
using namespace std;
int main() {
  long long ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  double midx = (double)(ax + cx) / 2.0;
  double midy = (double)(ay + cy) / 2.0;
  if (midx == bx && midy == by)
    cout << "No" << endl;
  else {
    if (((cx - bx) * (cx - bx) + (cy - by) * (cy - by)) ==
        ((ax - bx) * (ax - bx) + (ay - by) * (ay - by)))
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
