#include <bits/stdc++.h>
using namespace std;
long long int f(long long a1, long long a2, long long b1, long long b2) {
  return (b1 - a1) * (b1 - a1) + (b2 - a2) * (b2 - a2);
}
int main() {
  long long int ax, ay, bx, by, cx, cy;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  if ((bx - ax) * (by - cy) != (bx - cx) * (by - ay) &&
      f(ax, ay, bx, by) == f(bx, by, cx, cy))
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
