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