#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  if (((ax - bx) * (ax - bx) + (ay - by) * (ay - by) ==
       ((cx - bx) * (cx - bx) + (cy - by) * (cy - by))) &&
      ((cy - by) * (bx - ax) != (by - ay) * (cx - bx)))
    printf("Yes");
  else
    printf("No");
}
int main() {
  int t = 1;
  while (t--) solve();
  return 0;
}
