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