#include <bits/stdc++.h>
using namespace std;
int main() {
  long long ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  long long abx = llabs(ax - bx), aby = llabs(ay - by);
  long long cbx = llabs(cx - bx), cby = llabs(cy - by);
  if (abx * abx + aby * aby == cbx * cbx + cby * cby &&
      (!((ax - bx == bx - cx) && (ay - by == by - cy))))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
