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