#include <bits/stdc++.h>
int main(int argc, const char* argv[]) {
  long long ax, ay, bx, by, cx, cy;
  std::cin >> ax >> ay >> bx >> by >> cx >> cy;
  long long a = (ax - bx) * (ax - bx) + (ay - by) * (ay - by);
  long long c = (cx - bx) * (cx - bx) + (cy - by) * (cy - by);
  double k0 = (double)(ay - by) / (ax - bx);
  double k1 = (double)(ay - cy) / (ax - cx);
  if (a == c && k0 != k1)
    std::cout << "Yes" << std::endl;
  else
    std::cout << "No" << std::endl;
  return 0;
}
