#include <bits/stdc++.h>
using namespace std;
long long int ax, ay, bx, by, cx, cy;
double k1, k2, k3;
int main() {
  long long int dis_ab, dis_ac, dis_bc, max_dis = -1;
  cin >> ax >> ay >> bx >> by >> cx >> cy;
  dis_ab = (ax - bx) * (ax - bx) + (ay - by) * (ay - by);
  k1 = (double)(ax - bx) / (ay - by);
  dis_ac = (ax - cx) * (ax - cx) + (ay - cy) * (ay - cy);
  k2 = (double)(ax - cx) / (ay - cy);
  dis_bc = (bx - cx) * (bx - cx) + (by - cy) * (by - cy);
  k3 = (double)(bx - cx) / (by - cy);
  if (k1 == k2 && k2 == k3)
    cout << "No";
  else {
    if (dis_ab == dis_bc)
      cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}
