#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int ax, ay, bx, by, cx, cy;
  scanf("%lld%lld%lld%lld%lld%lld", &ax, &ay, &bx, &by, &cx, &cy);
  long long int l1 = ((by - ay) * (by - ay) + (bx - ax) * (bx - ax));
  long long int l2 = ((cy - by) * (cy - by) + (cx - bx) * (cx - bx));
  int mark = 0;
  if ((ax == bx && ax == cx) || (ay == by && ay == cy))
    mark = 1;
  else {
    double k1 = (by - ay) * 1.0 / (bx - ax);
    double k2 = (cy - by) * 1.0 / (cx - bx);
    if (k1 == k2) mark = 1;
  }
  if (!mark && l1 == l2)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
