#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);
  if ((ax - bx) * (cy - by) - (ay - by) * (cx - bx) != 0 &&
      (ay - by) * (ay - by) + (ax - bx) * (ax - bx) ==
          (cy - by) * (cy - by) + (cx - bx) * (cx - bx))
    printf("Yes\n");
  else
    printf("No\n");
}
